From 4a2327d1c84a5948111720e61a21bd36da129b4a Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sun, 1 Dec 2019 17:52:11 +0100 Subject: [PATCH] Backport PR #15795: Remove incorrect statement re: colorbars in image tutorial. --- 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