You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use broadcast_like for 2d plot coordinates (#5099)
* Use broadcast_like for 2d plot coordinates
Use broadcast_like if either `x` or `y` inputs are 2d to ensure that
both have dimensions in the same order as the DataArray being plotted.
Convert to numpy arrays after possibly using broadcast_like. Simplifies
code, and fixes#5097 (bug when dimensions have the same size).
* Update whats-new
* Test for issue 5097
* Fix typo in doc/whats-new.rst
Co-authored-by: Mathias Hauser <[email protected]>
* Update doc/whats-new.rst
Co-authored-by: Mathias Hauser <[email protected]>
Copy file name to clipboardExpand all lines: doc/whats-new.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,8 @@ Deprecations
91
91
92
92
Bug fixes
93
93
~~~~~~~~~
94
+
- Fix 2d plot failure for certain combinations of dimensions when `x` is 1d and `y` is
95
+
2d (:issue:`5097`, :pull:`5099`). By `John Omotani <https://github.com/johnomotani>`_.
94
96
- Ensure standard calendar times encoded with large values (i.e. greater than approximately 292 years), can be decoded correctly without silently overflowing (:pull:`5050`). This was a regression in xarray 0.17.0. By `Zeb Nicholls <https://github.com/znicholls>`_.
95
97
- Added support for `numpy.bool_` attributes in roundtrips using `h5netcdf` engine with `invalid_netcdf=True` [which casts `bool`s to `numpy.bool_`] (:issue:`4981`, :pull:`4986`).
96
98
By `Victor Negîrneac <https://github.com/caenrigen>`_.
0 commit comments