I have to visualize preliminary processing results, that only exist as numpy ndarrays.
To do so, I am using pyplot (plt) from matplotlib and imshow + subplots.
fig, ((mb_arr, mk_arr),(k10_b, k10_l)) = plt.subplots(3, 2, figsize=(16, 12))
mb_arr.imshow(mb_2014_array, cmap='gray', interpolation='nearest')
mk_arr.imshow(mk_2014_array, cmap='gray', interpolation='nearest')
k10_b.imshow(k10_build_array, cmap='gray', interpolation='nearest')
k10_l.imshow(k10_lake_array, cmap='gray', interpolation='nearest')
k10_f.imshow(k10_forest_array, cmap='gray', interpolation='nearest');
However, I am stuck with four out of five results, because I can't get the fifth array printed in the setup of subplots. Below is the code I am using at the moment, and the error here is:
--> fig, ((mb_arr, mk_arr),(k10_b, k10_l), (k10_f, )) = plt.subplots(3, 2, figsize=(16, 12))
ValueError: too many values to unpack
How do I have to specify, that the last row in the 3 x 2 grid will contain only one element?