NOAA-PMEL / PyFerret

The PyFerret program and Python module from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
60 stars 22 forks source link

Not finding plot axis range for similar values #80

Open seasage opened 4 years ago

seasage commented 4 years ago

For a list of nearly identical values, the command PLOT/VS is not finding the range of the plot axis corresponding to that list.

ACManke commented 8 months ago

Like this?

yes? let xvar = {1.0000001, 1., 1.00000015, 1.000002}
yes? let yvar = {1, 1, 1, 1}

! This plot has its horizontal axis messed up.
yes? plot/vs xvar,yvar

! This one plots the data correctly
yes? plot/vs xvar-1,yvar

This is an artifact of PPLUS trying to make nice axes from the data ranges. It does handle the constant value of the data in yvar, but the plot labels especially can't capture the data values.