I have a preconstructed figure f = Figure(figsize=(6.4,8.2))
created for a tkinter GUI - usually to plot on this figure I use f.add_subplot
and f.draw() to update the figure.
In order to have more customisation over a certain group of plots I need to create a new figure rather than adding subplots to this old one. Is there any way I can put a figure inside a figure, i.e. get f.draw()
to draw fig.
fig, axes = plt.subplots(nrows=2, ncols=3, sharex=True, sharey=True)
for i, ax in enumerate(axes.flat):
contourplot = ax.contourf(A,B, mag[i])