File tree 1 file changed +5
-3
lines changed
packages/python/plotly/plotly/express
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,9 @@ def imshow(
331
331
img = np .moveaxis (img , animation_frame , 0 )
332
332
animation_frame = True
333
333
args ["animation_frame" ] = (
334
- "slice" if labels .get ("animation" ) is None else labels ["animation" ]
334
+ "animation_frame"
335
+ if labels .get ("animation_frame" ) is None
336
+ else labels ["animation_frame" ]
335
337
)
336
338
iterables = ()
337
339
if animation_frame is not None :
@@ -509,8 +511,8 @@ def imshow(
509
511
raise ValueError (
510
512
"px.imshow only accepts 2D single-channel, RGB or RGBA images. "
511
513
"An image of shape %s was provided."
512
- "Alternatively, 3-D single or multichannel datasets can be"
513
- "visualized using the `facet_col` or `animation_frame` arguments."
514
+ "Alternatively, 3- or 4- D single or multichannel datasets can be"
515
+ "visualized using the `facet_col` or/and `animation_frame` arguments."
514
516
% str (img .shape )
515
517
)
516
518
You can’t perform that action at this time.
0 commit comments