Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de00875

Browse files
typo fix
1 parent d5cf670 commit de00875

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/python/imshow.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.2'
9-
jupytext_version: 1.3.0
9+
jupytext_version: 1.4.2
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.3
23+
version: 3.7.7
2424
plotly:
2525
description: How to display image data in Python with Plotly.
2626
display_as: scientific
@@ -71,7 +71,7 @@ import plotly.express as px
7171
from skimage import data
7272
img = data.astronaut()
7373
fig = px.imshow(img, binary_format="jpeg", binary_compression_level=0)
74-
fig.show("notebook")
74+
fig.show()
7575
```
7676

7777
### Display single-channel 2D data as a heatmap
@@ -433,7 +433,7 @@ fig = px.imshow(np.array(img_sequence), facet_col=0, binary_string=True,
433433
labels={'facet_col':'sigma'})
434434
# Set facet titles
435435
for i, sigma in enumerate(sigmas):
436-
fig.layout.annotations[i]['text'] = 'sigma = %d' %sigma
436+
fig.layout.annotations[i]['text'] = 'sigma = %d' %sigma
437437
fig.show()
438438
```
439439

0 commit comments

Comments
 (0)