Skip to content

Commit 8625f75

Browse files
more imshow fixups
1 parent de00875 commit 8625f75

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

doc/python/imshow.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,6 @@ for i, sigma in enumerate(sigmas):
437437
fig.show()
438438
```
439439

440-
```python
441-
print(fig)
442-
```
443-
444440
### Exploring 3-D images and timeseries with `animation_frame`
445441

446442
*Introduced in plotly 4.14*
@@ -454,7 +450,7 @@ from skimage.data import image_fetcher
454450
path = image_fetcher.fetch('data/cells.tif')
455451
data = io.imread(path)
456452
img = data[25:40]
457-
fig = px.imshow(img, animation_frame=0, binary_string=True)
453+
fig = px.imshow(img, animation_frame=0, binary_string=True, labels=dict(animation_frame="yo"))
458454
fig.show()
459455
```
460456

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def imshow(
522522
slice_label = (
523523
"facet_col" if labels.get("facet_col") is None else labels["facet_col"]
524524
)
525-
col_labels = ["%s = %d" % (slice_label, i) for i in facet_slices]
525+
col_labels = ["%s=%d" % (slice_label, i) for i in facet_slices]
526526
fig = init_figure(args, "xy", [], nrows, ncols, col_labels, [])
527527
for attr_name in ["height", "width"]:
528528
if args[attr_name]:

0 commit comments

Comments
 (0)