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
Autoscale problem
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
Jean-Louis,
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.
That's possible. An example would be helpful, just send me a file when you have the time.Plotting data in double precision, it seems that sometimes the autoscale rounds the Y limits wrongly.
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.
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.I didn't succeeded to find a rule, but I suspect that could be linked to the axis values still in single precision
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.By the way, thanks for the double precision, it really helps me !
Visualize Your Data
support@dplot.com
support@dplot.com
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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.
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
support@dplot.com