Skip to content

Commit 4aa4074

Browse files
committed
Add explanation for imshow usage
1 parent 0ff68e0 commit 4aa4074

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

solutions/2.2-vmin_vmax_imshow_and_colorbars.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
# Now you're on your own!
1717
for ax, data in zip(axes, [data1, data2, data3]):
18+
# Display data, explicitly making the colormap cover values from 0 to 3
1819
im = ax.imshow(data, vmin=0, vmax=3, interpolation='nearest')
1920

2021
fig.colorbar(im, cax=cax, orientation='horizontal')

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