From: John H. <jd...@gm...> - 2008-02-18 14:00:32
|
On Feb 18, 2008 1:43 AM, Robin <ro...@gm...> wrote: > If I move the axes over as you describe, will this also bring the > plotted data, titles etc.? I will try and play around with this later > today. Would I first have to delete the existing axes created when I > create the subplot? Wouldn't that make a problem, since isn't it these You will need to remove the axes from the original figure: oldfig.delaxes(ax) and then add it to the new figure ax.set_figure(newfig) newfig.add_axes(ax) If you are adding several, you may want to play with the axes position or geometry (for subplots) ax.set_position and ax.change_geometry And yes, the data, titles, labels, grids, ticks, etc will be brought over. As Eric points out, this is an under-exercised part of the code so something may break, though last time I tried it it worked. JDH |