Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Steve Schmerler <elcorto@gm...>  20060402 16:55:36
Attachments:
normal_y.eps
small_y.eps

I get strange "histogramlike" plots if the yaxes scale is some orders of magnitude smaller than the xaxis (latest svn version). In [43]: matplotlib.__version__ Out[43]: '0.88svn' # bad x = arange(0,10,.1); y = sin(x)/100.0; plot(x,y); savefig('small_y.eps') # good x = arange(0,10,.1); y = sin(x); plot(x,y); savefig('normal_y.eps') This doesn't happen if I export as .png  Random number generation is the art of producing pure gibberish as quickly as possible. 
From: John Hunter <jdhunter@ac...>  20060403 02:58:44

>>>>> "Steve" == Steve Schmerler <elcorto@...> writes: Steve> I get strange "histogramlike" plots if the yaxes scale is Steve> some orders of magnitude smaller than the xaxis (latest Steve> svn version). This appears to be a truncation error due to the formating string we use to represent floats in backend_ps. Darren, should we prefer 1.3e instead of 1.3f, or perhaps 1.4e or 1.5e? JDH 
From: Eric Firing <efiring@ha...>  20060403 03:18:20

John Hunter wrote: >>>>>>"Steve" == Steve Schmerler <elcorto@...> writes: > > > Steve> I get strange "histogramlike" plots if the yaxes scale is > Steve> some orders of magnitude smaller than the xaxis (latest > Steve> svn version). > > This appears to be a truncation error due to the formating string we > use to represent floats in backend_ps. Darren, should we prefer 1.3e > instead of 1.3f, or perhaps 1.4e or 1.5e? John, Darren, I would suggest something like 1.5g, which will be less bulky for common cases than 1.5f. Matlab ps files have all paths already transformed to paper coordinates but in very small units (thousandths of an inch?) so that they can be given as integers. Eric 
From: Steve Schmerler <elcorto@gm...>  20060403 09:26:21

John Hunter wrote: >>>>>>"Steve" == Steve Schmerler <elcorto@...> writes: > > > Steve> I get strange "histogramlike" plots if the yaxes scale is > Steve> some orders of magnitude smaller than the xaxis (latest > Steve> svn version). > > This appears to be a truncation error due to the formating string we > use to represent floats in backend_ps. Darren, should we prefer 1.3e > instead of 1.3f, or perhaps 1.4e or 1.5e? > Replacing %f by %e and %1.3f by %1.5e in the latest svn version's backend_ps.py solves the problem. cheers, steve  Random number generation is the art of producing pure gibberish as quickly as possible. 
From: Darren Dale <dd55@co...>  20060403 15:12:14

I think 1.4g is the way to go. It's fixed in svn 2252. On Sunday 02 April 2006 22:55, John Hunter wrote: > >>>>> "Steve" == Steve Schmerler <elcorto@...> writes: > > Steve> I get strange "histogramlike" plots if the yaxes scale is > Steve> some orders of magnitude smaller than the xaxis (latest > Steve> svn version). > > This appears to be a truncation error due to the formating string we > use to represent floats in backend_ps. Darren, should we prefer 1.3e > instead of 1.3f, or perhaps 1.4e or 1.5e? > > JDH > > > >  > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast and join the prime developer group breaking into this new coding > territory! > http://sel.asus.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers  Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd55@... office: (607) 2559894 fax: (607) 2559001 
Sign up for the SourceForge newsletter:
No, thanks