On Sun, 22 Apr 2007, Hans Strotzer apparently wrote: > One thing that really annoys me is that generally python > code is quite visually appealing
Tastes must vary! What is your point of comparison?? Controlling may graph properties is never going to be beautiful. But why not define a class that can build a figure with your desired defaults? > # change color of important bars... > for i in p.info: > if type(i)==datetime: > index = p.dates.index(i) > if index: > p1[index].set_facecolor('r') Apparently p.dates is NOT a list? (You seem to assume None is returned if a ValueError would be raised.) Anyway, maybe something like: colorindices = (p.dates.index(d) for d in p.info if d in p.dates) for index in colorindices: p1[index].set_facecolor('r') Cheers, Alan Isaac ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users