You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Axes created via mpl_toolkits.axes_grid1.host_subplot(...).twin() (or twinx(), twiny()) can not be removed via their remove() method. Non-mpl_toolkit twin axes can be removed; this is specific to mpl_toolkit.
Is there a way around this that I'm missing? I'm using axes_grid1's twin() to interactively create axes with user-defined transforms and want to be able to destroy them as well, of course. Alternatively, it would suffice for me to be able to change the transform (given initially via twin(aux_transform)), but even that seems not possible.
matplotlib version: 1.5.dev1, at commit 2c95107db6c09d42336a8ce901ea57ccae34f3ca Python version: 3.4.2
The remove method is a place-holder that needs to be installed at instantiation time by assigning a function to a._remove_method (have a look at the add_* methods on Axes). axes_grid just needs to do the same thing.
Activity
tacaswell commentedon Aug 10, 2015
The remove method is a place-holder that needs to be installed at instantiation time by assigning a function to
a._remove_method(have a look at theadd_*methods onAxes). axes_grid just needs to do the same thing.smheidrich commentedon Oct 15, 2015
Thanks for merging the PR, issue should be fixed now!
axes_grid1: make twin* not modify host axes
axes_grid1: make twin* not modify host axes