Autoscale problem

Found a bug? Tell us about it here

Moderator: DPlotAdmin

Post Reply
oneto
Posts: 14
Joined: Fri Feb 20, 2004 6:23 am
Location: Grasse, France

Autoscale problem

Post by oneto »

Hello,
Plotting data in double precision, it seems that sometimes the autoscale rounds the Y limits wrongly. I didn't succeeded to find a rule, but I suspect that could be linked to the axis values still in single precision ?
By the way, thanks for the double precision, it really helps me !
Jean-Louis Oneto
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Jean-Louis,
Plotting data in double precision, it seems that sometimes the autoscale rounds the Y limits wrongly.
That's possible. An example would be helpful, just send me a file when you have the time.

If you allow DPlot to set the extents and the tick mark intervals, what it should be doing is finding a tick mark interval that's some power of 10 times 1,1.5,2,2.5,3,4,5,6, or 8 that gives roughly 10 intervals and includes the entire extents of the data.
I didn't succeeded to find a rule, but I suspect that could be linked to the axis values still in single precision
The FFT routines still use single precision, so DPlot first converts input to single precision, then converts the FFT output to double precision. Same thing applies to plugins and data passed to DPlot via DDE. All of these will be converted to double precision eventually, but I doubt this is the source of what you see as a problem.
By the way, thanks for the double precision, it really helps me !
You're quite welcome. It should have been done this way from the start, but back when men were men and dinosaurs roamed the earth I was more concerned about memory usage.
Visualize Your Data
support@dplot.com
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Jean-Louis,
Thanks for the example file. You are correct, there's a sloppy roundoff problem in there that's now fixed. Using the default scaling your minimum value of 0.269414956190 results in the lower limit being 0.2694149 rather than 0.269415.
Visualize Your Data
support@dplot.com
Post Reply