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
Copy file name to clipboardExpand all lines: doc/python/imshow.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -403,7 +403,7 @@ fig.show()
403
403
404
404
*Introduced in plotly 4.11*
405
405
406
-
For three-dimensional image datasets, obtained for example by MRI or CT in medical imaging, one can explore the dataset by representing its different planes as facets. The `facet_col` argument specifies along which axes the image is sliced through to make the facets. With `facet_col_wrap` , one can set the maximum number of columns.
406
+
For three-dimensional image datasets, obtained for example by MRI or CT in medical imaging, one can explore the dataset by representing its different planes as facets. The `facet_col` argument specifies along which axes the image is sliced through to make the facets. With `facet_col_wrap` , one can set the maximum number of columns. For image datasets passed as xarrays, it is also possible to give an axis name as a string for `facet_col`.
407
407
408
408
It is recommended to use `binary_string=True` for facetted plots of images in order to keep a small figure size and a short rendering time.
409
409
@@ -455,12 +455,14 @@ fig.show()
455
455
456
456
*Introduced in plotly 4.11*
457
457
458
+
For xarray datasets, one can pass either an axis number or an axis name to `animation_frame`. Axis names and coordinates are automatically used for the labels, ticks and animation controls of the figure.
459
+
458
460
```python
459
461
import plotly.express as px
460
462
import xarray as xr
461
463
# Load xarray from dataset included in the xarray tutorial
0 commit comments