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

Skip to content

Commit 6a22d87

Browse files
committed
Remove incorrect statement re: colorbars in image tutorial.
Colorbars actually do auto-update their cmap to match the image's cmap. I don't think it's worth mentioning that in an intro tutorial, but at least remove the incorrect statement.
1 parent 1cd9137 commit 6a22d87

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tutorials/introductory/images.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,12 @@
175175
# ------------------------
176176
#
177177
# It's helpful to have an idea of what value a color represents. We can
178-
# do that by adding color bars.
178+
# do that by adding a color bar to your figure:
179179

180180
imgplot = plt.imshow(lum_img)
181181
plt.colorbar()
182182

183183
###############################################################################
184-
# This adds a colorbar to your existing figure. This won't
185-
# automatically change if you change you switch to a different
186-
# colormap - you have to re-create your plot, and add in the colorbar
187-
# again.
188-
#
189184
# .. _`Data ranges`:
190185
#
191186
# Examining a specific data range

0 commit comments

Comments
 (0)