-
Notifications
You must be signed in to change notification settings - Fork 596
Description
Hello matplotlib developers,
I was watching the Youtube recording: Anatomy of Matplotlib from SciPy 2018, and I have a question about AnatomyOfMatplotlib/solutions/2.2-vmin_vmax_imshow_and_colorbars.py
From line 17 to 18...
for ax, data in zip(axes, [data1, data2, data3]):
im = ax.imshow(data, vmin=0, vmax=3, interpolation='nearest')
I am assuming data3 has bigger values, followed by data2 and data2, since data3 is multiplied by 3. Suppose if I switch the order of the list in line 17 from:
for ax, data in zip(axes, [data1, data2, data3]):
to:
for ax, data in zip(axes, [data3, data2, data1]):
So, the last im object would data1 which has a 10 by 10 array with max value of 1. Since we are giving the last im object to make the colorbar, would that mean the range color bar spans from 0 to around 1? Or does matplotlib somehow manage to look at all three plotted imshows and perceive that the maximum value amongst the three imshows is around 3?
Thank you!