Skip to content

Commit d63a76a

Browse files
committed
comment
1 parent 568d1c1 commit d63a76a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/python/plotly/plotly/tests/test_core/test_px/test_imshow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def test_imshow_xarray():
122122
img = np.random.random((20, 30))
123123
da = xr.DataArray(img, dims=["dim_rows", "dim_cols"])
124124
fig = px.imshow(da)
125+
# Dimensions are used for axis labels and coordinates
125126
assert fig.layout.xaxis.title.text == "dim_cols"
126127
assert fig.layout.yaxis.title.text == "dim_rows"
127128
assert np.all(np.array(fig.data[0].x) == np.array(da.coords["dim_cols"]))

0 commit comments

Comments
 (0)