SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Kersey B. <kb...@js...> - 2010年04月29日 21:19:52
I have run across what I think is a bug in the markevery functionality.
Running OSX 10.6.2
Python 2.6.4 |EPD 6.1-1 (32-bit)| (r264:75706, Dec 11 2009, 10:58:54)
mp.__version__ '0.99.1.1'
I have 16 lines plotted in a plot which is embedded in a wxpython application frame.
I am using the WXAgg backend
For each line, I am plotting the two variables (distances in this case) against each 
other an am using the 'markevery' functionality to mark just one point along each line.
I do this with this construction using the line list returned from the plot command.
 new_line[0].set_markevery(every=(t0[0],9999))
The data set is much smaller than 9999 points, so 
this insures only having one point highlighted along the line.
It works great, and does just what I want.
However, when I zoom and pan the plot, for about half of the lines the highlighted point 
(which should stay put) actually migrates along the line as I am panning the plot. 
The marked points seem to start moving when they get close to the edge of the plot frame, 
as if to stay visible, but it is not quite that simple.
Has anyone else observed this? Or have a fix? I saw a previous bug reported 
with markevery from Jan 2009, but that seemed to be resolved.
Kersey
From: Eric F. <ef...@ha...> - 2010年04月29日 21:47:20
Kersey Black wrote:
> I have run across what I think is a bug in the markevery functionality.
> 
> Running OSX 10.6.2
> Python 2.6.4 |EPD 6.1-1 (32-bit)| (r264:75706, Dec 11 2009, 10:58:54)
> mp.__version__ '0.99.1.1'
> 
> I have 16 lines plotted in a plot which is embedded in a wxpython application frame.
> I am using the WXAgg backend
> 
> For each line, I am plotting the two variables (distances in this case) against each 
> other an am using the 'markevery' functionality to mark just one point along each line.
> I do this with this construction using the line list returned from the plot command.
> new_line[0].set_markevery(every=(t0[0],9999))
> The data set is much smaller than 9999 points, so 
> this insures only having one point highlighted along the line.
> It works great, and does just what I want.
> 
> However, when I zoom and pan the plot, for about half of the lines the highlighted point 
> (which should stay put) actually migrates along the line as I am panning the plot. 
> The marked points seem to start moving when they get close to the edge of the plot frame, 
> as if to stay visible, but it is not quite that simple.
> 
> Has anyone else observed this? Or have a fix? I saw a previous bug reported 
> with markevery from Jan 2009, but that seemed to be resolved.
I just committed what I think will be a fix, in svn 8289.
Eric
> 
> Kersey
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /