We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b35ecf commit c9cc698Copy full SHA for c9cc698
xarray/tests/test_plot.py
@@ -2162,3 +2162,9 @@ def test_plot_transposed_nondim_coord(plotfunc):
2162
)
2163
getattr(da.plot, plotfunc)(x="x", y="zt")
2164
getattr(da.plot, plotfunc)(x="zt", y="x")
2165
+
2166
2167
+def test_plot_transposes_properly():
2168
+ da = xr.DataArray([np.sin(2 * np.pi / 10 * np.arange(10))] * 10, dims=("y", "x"))
2169
+ hdl = da.plot(x="x", y="y")
2170
+ np.all(hdl.get_array() == da.to_masked_array().ravel())
0 commit comments