Following this answer (https://stackoverflow.com/a/36049914/7462275), I use the following code to plot a grid of subplots using matplotlib.
fig = plt.figure(figsize=(5,5))
ax=[fig.add_subplot(4,3,i+1) for i in range(12)]
for a in ax:
plt.axis('on')
a.set_xticklabels([])
a.set_yticklabels([])
#ax1.set_aspect('equal')
plt.subplots_adjust(wspace=0, hspace=0)
plt.show()
The output is :
I would like to add external axes to the whole figure. For example,
How is it possible to do that ? Thanks for answer.