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 568d1c1 commit d63a76aCopy full SHA for d63a76a
packages/python/plotly/plotly/tests/test_core/test_px/test_imshow.py
@@ -122,6 +122,7 @@ def test_imshow_xarray():
122
img = np.random.random((20, 30))
123
da = xr.DataArray(img, dims=["dim_rows", "dim_cols"])
124
fig = px.imshow(da)
125
+ # Dimensions are used for axis labels and coordinates
126
assert fig.layout.xaxis.title.text == "dim_cols"
127
assert fig.layout.yaxis.title.text == "dim_rows"
128
assert np.all(np.array(fig.data[0].x) == np.array(da.coords["dim_cols"]))
0 commit comments