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