From: John H. <jdh...@ac...> - 2004-05-07 14:39:40
|
>>>>> "Gary" == Gary Ruben <ga...@em...> writes: Gary> To John Hunter, John, I think this may be quite a common Gary> wish. I usually want my errorbars to have different Gary> properties to the default; not just colour but also a Gary> different weight from the main trend line. Perhaps this is a Gary> good candidate for factoring into the .matplotlibrc file and Gary> maybe for extra format specifiers in the errorbar call. I'd Gary> rate it an extremely low priority though, since you can Gary> already achieve it as in the example. Alternatively, adding Gary> this to a code sample could be useful to others. regards, Gary> Gary I think making this an rc setting is overkill because it is so narrowly focused. I also don't think we need to do a full blown format string (who wants dash dot error bars?). A color arg would clearly be useful. As for line weights and other props, I can't think of an elegant way to do it in the errorbar signature because of the existence of the main line and the error lines. You *could* do errorbar(blah, blah, lineprops = {'color' : 'r', 'linewidth' : 1}, errprops = {'color' : 'k', 'linewidth' : 2}) but I don't think this is any easier, clearer or cleaner than just doing line, errlines = errorbar(blah, blah) set(line, 'color', 'r', 'linewidth', 1) set(errlines, 'color', 'k', 'linewidth', 2) So I think an errcolor arg and example showing how to customize the errorline properties from the lines returned by errorbar is the right compromise. Are you volunteering :-)? JDH |