Repository navigation
Description
Proposed new feature or change:
Right now, uxarray plotting routines crash if the underlying data includes any dimensions not connected to the grid. For example:
import uxarray as ux
data = ux.tutorial.open_dataset("outCSne30-timeseries")
print(data['psi'].sizes) # {'time': 6, 'n_face': 5400}
data['psi'].plot()Makes: ValueError: Data Variable must be 1-dimensional, with shape 5400 for face-centered data.
Proposed features:
- Provide options to create animations/movies in time (or any other non-grid dimension).
- Provide options add a slider or dropdown menu to slide/click through non-grid dimensions, like time or elevation, at least when using "bokeh" backend.
- For small-sized extra dimensions (size<10, ish?), make it easy to create multiple plots; for example, in this case, maybe it should be easy to make 6 subplots, showing the values at each time.
- Allow plotting datasets with small (<10, ish) number of data_vars; e.g. making one subplot per var (equivalent to (3) above, using uxds.to_array().plot() with dim="variable" as the "small-sized extra dimension") or allowing an animation, slider, or dropdown (as in suggestions (1) and (2) above).
- Avoid accidentally plotting way too much at once, by imposing (adjustable) default limits on sizes, raising error if inputs are too large. Example: "ValueError: refused to plot row='time' with 50 subplots; can adjust maximum number of plots per row via subplots_row_size_max=value (default: 10)"
Should these options occur by default, or require using flags, such as data['psi'].plot(row='time')? If they require using flags, then the default error message should be improved, to help users find those flags.
Sidenote: maybe the default error message could also be improved in the meantime by printing the sizes actually found in the data? Something like: ValueError(f"plotting only supports 1-dimensional data variable; expected face-centered array with n_faces=5400; got {array.data_location} array with sizes {array.sizes}") would have helped me understand the error and how to debug it much faster.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsOn Pause
Activity
Sevans711 commentedon Aug 20, 2026
Report-back from discussion about this: sounds like there is definitely a desire to support plotting with multiple dimensions. However, it remains unclear whether the best way forwards would be to add new functionality directly into the uxarray API, or to keep it out of the API but instead focus on providing more detailed multidimensional plotting examples in the documentation. Probably should take some time to explore different options and discuss further before implementing changes directly to uxarray.
@erogluorhan expressed interest in maybe having people look into whether https://github.com/github/spec-kit could help with developing a GUI for making multidimensional plot visualizations, or with developing any of these features in general.
Sidenote from me: if I recall correctly, the processing time for holoviews to build an animation or multidimensional interactive plot is likely to be much faster than saving all frames independently then joining into an animation via pillow or ffmpeg. This means using holoviews directly to build movies may provide a huge speedup. I haven't yet looked into how well this scales to larger datasets, though.
rajeeja commentedon Aug 25, 2026
Chiming in on the GUI question, mostly from watching how people in this space actually work: