Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8625f75

Browse filesBrowse files
more imshow fixups
1 parent de00875 commit 8625f75
Copy full SHA for 8625f75

File tree

Expand file treeCollapse file tree

2 files changed

+2
-6
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-6
lines changed

‎doc/python/imshow.md

Copy file name to clipboardExpand all lines: doc/python/imshow.md
+1-5Lines 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

Copy file name to clipboardExpand all lines: packages/python/plotly/plotly/express/_imshow.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.