Skip to content

Commit a431fad

Browse files
committed
remove commented-out code
1 parent 72674b7 commit a431fad

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/python/plotly/plotly/express/_imshow.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,13 @@ def imshow(
189189
their lengths must match the lengths of the second and first dimensions of the
190190
img argument. They are auto-populated if the input is an xarray.
191191
192-
facet_col: int, optional (default None)
193-
axis number along which the image array is slices to create a facetted plot.
192+
animation_frame: int or str, optional (default None)
193+
axis number along which the image array is sliced to create an animation plot.
194+
If `img` is an xarray, `animation_frame` can be the name of one the dimensions.
195+
196+
facet_col: int or str, optional (default None)
197+
axis number along which the image array is sliced to create a facetted plot.
198+
If `img` is an xarray, `facet_col` can be the name of one the dimensions.
194199
195200
facet_col_wrap: int
196201
Maximum number of facet columns. Wraps the column variable at this width,
@@ -307,12 +312,6 @@ def imshow(
307312
slices = range(nslices)
308313
# ----- Define x and y, set labels if img is an xarray -------------------
309314
if xarray_imported and isinstance(img, xarray.DataArray):
310-
# if binary_string:
311-
# raise ValueError(
312-
# "It is not possible to use binary image strings for xarrays."
313-
# "Please pass your data as a numpy array instead using"
314-
# "`img.values`"
315-
# )
316315
dims = list(img.dims)
317316
if slice_through:
318317
slice_index = facet_col if facet_col is not None else animation_frame

0 commit comments

Comments
 (0)