Open savannahferretti opened 1 year ago
I think this would be super neat. It would effectively copy how xarray already allows you to plot matplotlib plots, i.e.
da.plot.line() # matplotlib plot
da.proplot.line() # proplot plot
Xarray's documentation on accessors is here.
You might also want to follow this issue in case we ever implement it :sweat_smile:
I am a PhD student in climate science, and love proplot! But I would love to use it from xarray using an accessor. That might look like this:
So you can toy with the data yourself, I used the Xarray tutorial air temperature dataset for an "example" of sorts. The environment needs both pooch (
`conda install pooch
) and Xarray installed.Make plotting simple graphs in proplot an accessor to Xarray:
Test the accessor on the Xarray tutorial data with different dimensions:
I think this would be impactful because it would make it easier for those in the climate science space who use Xarray to get their feet wet with proplot, moving away from matplotlib. I'd be happy to collaborate on this effort if wanted/needed!
@TomNicholas