Skip to content

Commit 10d64b9

Browse files
committed
minor changes
1 parent 2056d13 commit 10d64b9

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 skimage import data
177177
img = data.chelsea()
178178
fig = make_subplots(1, 2)
179-
# We use go.Image because at the moment px functions are not compatible with subplots
179+
# We use go.Image because subplots require traces, whereas px functions return a figure
180180
fig.add_trace(go.Image(z=img), 1, 1)
181181
for channel, color in enumerate(['red', 'green', 'blue']):
182182
fig.add_trace(go.Histogram(x=img[..., channel].ravel(), opacity=0.5,

0 commit comments

Comments
 (0)