fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, figsize=(14, 10))
produces the below, which is expected and makes sense.
However, following the same format and basic intuition, if I change the code to:
fig, ((ax1, ax2, ax3), (ax4, ax5, ax6)) = plt.subplots(3, 3, figsize=(14, 10))
I get an: ValueError: too many values to unpack (expected 2)
. I get the same error if I leave it as fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(3, 3, figsize=(14, 10))
. Why is this?
Also if someone has an intuitive guide for the subplots
library written for beginners, it would be very helpful because I am not finding the documentation intuitive at all.