From 4aa4074aa3c7c376cd9e9b2262012f73edbb0dfb Mon Sep 17 00:00:00 2001 From: Jess Tiu Date: Mon, 21 Oct 2019 22:23:18 +0800 Subject: [PATCH 1/2] Add explanation for imshow usage --- solutions/2.2-vmin_vmax_imshow_and_colorbars.py | 1 + 1 file changed, 1 insertion(+) diff --git a/solutions/2.2-vmin_vmax_imshow_and_colorbars.py b/solutions/2.2-vmin_vmax_imshow_and_colorbars.py index 2bc76a8..0fd5630 100644 --- a/solutions/2.2-vmin_vmax_imshow_and_colorbars.py +++ b/solutions/2.2-vmin_vmax_imshow_and_colorbars.py @@ -15,6 +15,7 @@ # Now you're on your own! for ax, data in zip(axes, [data1, data2, data3]): + # Display data, explicitly making the colormap cover values from 0 to 3 im = ax.imshow(data, vmin=0, vmax=3, interpolation='nearest') fig.colorbar(im, cax=cax, orientation='horizontal') From 21339aabbed1b0f0f5f77e812f48b04bb1d9eada Mon Sep 17 00:00:00 2001 From: Jess Tiu Date: Mon, 21 Oct 2019 22:55:51 +0800 Subject: [PATCH 2/2] Fix alignment --- solutions/2.2-vmin_vmax_imshow_and_colorbars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/2.2-vmin_vmax_imshow_and_colorbars.py b/solutions/2.2-vmin_vmax_imshow_and_colorbars.py index 0fd5630..208e6ea 100644 --- a/solutions/2.2-vmin_vmax_imshow_and_colorbars.py +++ b/solutions/2.2-vmin_vmax_imshow_and_colorbars.py @@ -15,7 +15,7 @@ # Now you're on your own! for ax, data in zip(axes, [data1, data2, data3]): - # Display data, explicitly making the colormap cover values from 0 to 3 + # Display data, explicitly making the colormap cover values from 0 to 3 im = ax.imshow(data, vmin=0, vmax=3, interpolation='nearest') fig.colorbar(im, cax=cax, orientation='horizontal') 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