Skip to content

Commit 3c01b35

Browse files
authored
Merge pull request #31 from jgtiu/add/explanation
Add explanation for imshow usage
2 parents 0ff68e0 + 21339aa commit 3c01b35

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)