Plotting xarray data easily (accessor)

I created a python package called `xarray_plotly` that handles dim assignment to plotly slots (facet, color, animation) automatically, making plotting xarray Data much more convenient. It wrapps most `plotly.express` methods.

Maybe someone else has use for it. Maybe such an approach would be worth to add to the plotly package dorectly, or at least be monitored or maintained by plotly itself?

2 Likes

Very interesting. Thank you @felixbumann_22394 .
How long into the future were you thinking of maintaining this package?

What’s on your roadmap for this library?

Hi Adam,

Sorry for the late response.

Its mostly a complementary package for GitHub - flixOpt/flixopt: Vector based Energy Optimization Framework

Its meant to simplify plotting xarray data by applying a .plotly accessor onto dataArrays and Datasets.
See also Static typing for popular accessors by jsignell Β· Pull Request #11087 Β· pydata/xarray Β· GitHub about accessors and their current limitations.

There is no specific roadmap atm. But the general goal is to make plotting multi-dim dataArrays easy by auto-assigning dims to slots (facet, color, …).

Also some overlaying stuff is added. But the needs are clearly driven from GitHub - flixOpt/flixopt: Vector based Energy Optimization Framework

I want to keep it a light wrapper around plotly.express though.

I am happy to take any feedback or use cases you could think of.

1 Like