Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitcc59b3c

Browse files
emmanuellenicolaskruchten
authored andcommitted
minor changes
1 parent67c1830 commitcc59b3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎python/imshow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ img = data.astronaut()
129129
# Increase contrast by clipping the data range between 50 and 200
130130
fig= px.imshow(img,zmin=50,zmax=200)
131131
# We customize the hovertemplate to show both the data and the color values
132-
# See https://plot.ly/python/v3/hover-text-and-formatting/#hovertemplate
132+
# See https://plot.ly/python/hover-text-and-formatting/#customize-tooltip-text-with-a-hovertemplate
133133
fig.update_traces(hovertemplate="x: %{x} <br> y: %{y} <br> z: %{z} <br> color: %{color}")
134134
fig.show()
135135
```
@@ -176,7 +176,7 @@ from plotly.subplots import make_subplots
176176
from skimageimport data
177177
img= data.chelsea()
178178
fig= make_subplots(1,2)
179-
# We use go.Image becauseat the momentpx functionsare not compatible with subplots
179+
# We use go.Image becausesubplots require traces, whereaspx functionsreturn a figure
180180
fig.add_trace(go.Image(z=img),1,1)
181181
for channel, colorinenumerate(['red','green','blue']):
182182
fig.add_trace(go.Histogram(x=img[..., channel].ravel(),opacity=0.5,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp