| 
     
      
      
      From: John H. <jd...@gm...> - 2008-02-19 15:24:26
      
     
   | 
On Feb 19, 2008 9:13 AM, Alan G Isaac <ai...@am...> wrote: > Of course you can do something like this:: > > from itertools import cycle > > mystyles = ['r+-', 'b.--', 'go-.'] #etc > ax1styles = cycle( mystyles ) You can also cycle through the list matplotlib uses import matplotlib.lines as lines # filled markers fmarkers = lines.Line2D.filled_markers # all markers markers = lines.Line2D.markers.keys() but this is not ideal, since lines.Line2D.markers is a dictionary and the keys will come back un-ordered. Noone has every asked for auto-marker cycling before, but it might be a good idea and wouldn't be too hard to add. JDH  |