Is there a simple/clean way to iterate an array of axis returned by subplots like
nrow = ncol = 2 a = [] fig, axs = plt.subplots(nrows=nrow, ncols=ncol) for
Matplotlib has its own flatten function on axes.
Why don't you try following code?
fig, axes = plt.subplots(2, 3) for ax in axes.flat: ## do something with instance of 'ax'