There seems to have been an indentation error there. Please update and try again now.
Thanks, Mike João Luís Silva wrote: > Michael Droettboom wrote: >> Thanks for narrowing this down. I have (hopefully) fixed this in r6864. >> > > It did fix my previous examples. However it broke the other form of > markevery, a 2-int tuple. From the set_markevery docs: > > Set the markevery property to subsample the plot when using > markers. Eg if ``markevery=5``, every 5-th marker will be > plotted. *every* can be > > None > Every point will be plotted > > an integer N > Every N-th marker will be plotted starting with marker 0 > > A length-2 tuple of integers > every=(start, N) will start at point start and plot every > N-th marker > > > ACCEPTS: None | integer | (startind, stride) > > > I don't know if the tuple version ever worked, for I couldn't figure > it out, but if it is to remain it now breaks mpl with: > > [...] > File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line > 1658, in draw > a.draw(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line > 521, in draw > markerFunc(renderer, gc, subsampled, affine.frozen()) > UnboundLocalError: local variable 'subsampled' referenced before > assignment > > > Example script: > ---------------------------------- > import matplotlib.pyplot as pl > import numpy as np > > pl.plot(np.arange(100.0),np.arange(100.0),marker="+",markevery=(50,5)) > pl.show() > ---------------------------------- > > I don't know what is the purpose and how to make the tuple version > work. Maybe John can shed some light into this? > > João Silva -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel