SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] Bug in ticker.py

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

View entire thread

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 によって変換されたページ (->オリジナル) /