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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy