SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: David M. <da...@sj...> - 2004年04月22日 09:50:36
Attachments: ticker.patch
Hi,
I'm posting this to the mailing list first because I'm not sure I've 
fixed this correctly. This is a patch for a bug in ticker.py.
In Autolocator.get_locator, if the distance passed in is 0, the call to 
log10 will crash with an overflow error. I think I'm hitting this 
problem because I plot a lot of binary data, and the first plot when 
this happened, consisted of all zeros (giving the y axis no distance - I 
could be talking complete nonsense, I haven't really examined the 
code). What I'm not sure about is, in the case that distance is 0, 
should the variable ld be set to 0 (as I have done in the attached 
patch), or is another value more sensible?
thanks,
David Moore
From: John H. <jdh...@ac...> - 2004年04月22日 13:16:30
>>>>> "David" == David Moore <da...@sj...> writes:
 David> Hi, I'm posting this to the mailing list first because I'm
 David> not sure I've fixed this correctly. This is a patch for a
 David> bug in ticker.py.
Another user told me about this one offlist and the fix is in CVS. My
approach was to revert to what we were doing before (which somehow got
lost in translation) which is to set the view lim to be plus/minus 1
the constant value.
Thanks for the patch, anyhow!
JDH
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 によって変換されたページ (->オリジナル) /