CDAT / vcs

Visualization Control System
19 stars 13 forks source link

Canvas plot with ratio="autot" results in interaction errors #354

Open scottwittenburg opened 6 years ago

scottwittenburg commented 6 years ago

When doing canvas.plot() using ratio="autot" and canvas.interact(), the longitude values given by the interaction popups are increasingly erroneous as you move away from center (longitude = 0) of the plot.

This was recently raised as an issue on vcs-js, see here. It can be reproduced as follows:

import vcs, cdms2

cltfile = cdms2.open(os.path.join(vcs.sample_data, "clt.nc"))
clt = cltfile("clt")
canvas = vcs.init(geometry={'width': 800, 'height':600})
box = canvas.createboxfill()
canvas.plot(clt, box, ratio="autot")
canvas.interact()

See the issue linked above for more details and screenshots.

jypeter commented 6 years ago

This sounds a lot like https://github.com/CDAT/vcs/issues/251, but the issue was closed