By default if you call plt.subplots(...) with a dimension of 1 for rows or columns, it "squeezes" that dimension out, which changes the dimensions of the returned object (list of Axes.Subplots). In this case that is not desireable because later code tries to index into this list.
… parameters.
By default if you call plt.subplots(...) with a dimension of 1 for rows or columns, it "squeezes" that dimension out, which changes the dimensions of the returned object (list of Axes.Subplots). In this case that is not desireable because later code tries to index into this list.