From: Michael H. <mh...@al...> - 2009-01-11 16:34:54
|
Alan G Isaac wrote: > On 1/11/2009 9:53 AM Michael Haggerty apparently wrote: >> The Gnuplot.py library uses float (i.e., single-precision) arrays to >> store values internally. When your value is rounded to >> single-precision, it results in the number that is actually plotted. > > Are you saying it uses the Python array > module to do this? This seems a very > odd decision. Why not just change that > to 'double'? Not Python arrays, but numpy arrays. The reason this is done is to save space for huge data sets. My assumption was that it is unusual to plot values that vary only in the ninth decimal place. And since there is a workaround, it doesn't seem like a bad compromise. But feel free to change it in your copy :-) Michael |