From 283a71993954357a9102362627fdcf1267dc1b90 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sat, 30 Nov 2019 11:53:45 +0100 Subject: [PATCH] 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. --- tutorials/introductory/images.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tutorials/introductory/images.py b/tutorials/introductory/images.py index e7061d3299c8..88a4c9af869b 100644 --- a/tutorials/introductory/images.py +++ b/tutorials/introductory/images.py @@ -175,17 +175,12 @@ # ------------------------ # # It's helpful to have an idea of what value a color represents. We can -# do that by adding color bars. +# do that by adding a color bar to your figure: imgplot = plt.imshow(lum_img) plt.colorbar() ############################################################################### -# This adds a colorbar to your existing figure. This won't -# automatically change if you switch to a different -# colormap - you have to re-create your plot, and add in the colorbar -# again. -# # .. _`Data ranges`: # # Examining a specific data range