Adding new DataArray.plot method for 2D DataArrays. #7852
Unanswered
vasilisniaouris
asked this question in
Ideas
Replies: 1 comment 1 reply
-
See #7173. I think I got stuck whether it should be a new method or not. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all! New xarray and really loving it! More often than not, When I am plotting 2D data arrays, I want to plot lines with an x-axis being one of the array dimensions, and the color of the line being the second dimension. Currently, this can be achieved by
xarray.DataArray.plot.line
by providingx
andhue
, and then creating a custom colormap and colorbar. What I am proposing looks a lot like the second example plot on the matplotlib line_collection page.Beta Was this translation helpful? Give feedback.
All reactions