This PR introduces a couple classes that handle interactive updating of all of the xlma panels after using the standard tools in the Matplotlib widget.
Usage is straightforward:
from pyxlma.plot.interactive import InteractiveLMAPlot
ds = xr.open_dataset('LYLOUT_220604_190000_18000_map500m.nc')
interactive_lma = InteractiveLMAPlot(ds)
All of the usual Matplotlib commands for changing axis limits automatically generate the necessary updates on the data side. It is therefore possible to programmatically control the axis limits and save, for example, an animation, with a handful of lines of code.
The built-in plotting routine works on any cf-lma-format NetCDF file from that branch, and can be overridden to add additional things, e.g.,
I'd be curious to hear your thoughts and suggestions, @vbalderdash, @tjlang, @mikestock, and @ronthomaslightning. It would also be good to get some other users to put some mileage on this to find all of my bugs.
This PR introduces a couple classes that handle interactive updating of all of the xlma panels after using the standard tools in the Matplotlib widget.
Usage is straightforward:
All of the usual Matplotlib commands for changing axis limits automatically generate the necessary updates on the data side. It is therefore possible to programmatically control the axis limits and save, for example, an animation, with a handful of lines of code.
The built-in plotting routine works on any cf-lma-format NetCDF file from that branch, and can be overridden to add additional things, e.g.,
I'd be curious to hear your thoughts and suggestions, @vbalderdash, @tjlang, @mikestock, and @ronthomaslightning. It would also be good to get some other users to put some mileage on this to find all of my bugs.