The divider thing from axes_grid toolkit is primarily designed for a static
layout. So, it may become quite tricky when you want to adjust the layout
dynamically.
Here is a modified version your code that I think does what you want.
from matplotlib.figure import Figure
from mpl_toolkits.axes_grid
Hi everyone,
I'm getting in trouble trying to delete a couple of subaxes from my canvas.
The problem is shown by the example script below:
from matplotlib.figure import Figure
from mpl_toolkits.axes_grid.axes_divider import make_axes_locatable
from matplotlib.backends.backend_qt4agg import Figure