On Wed, Jun 3, 2009 at 12:33 PM, TP <paratribulati...@free.fr> wrote: > Hi everybody, > > I want to delete a subplot from my figure. How to do that? > > For example, I would like to remove the right subplot in the following > example: > > ######################## > from pylab import * > > ion() > f = figure() > s = f.add_subplot("121") > X1 = arange( 0.0, 5.0, 0.1 ) > s.plot( X1, X1**2) > > s = f.add_subplot("122") > s.plot( X1, sqrt( X1 ))
Hmm, I didn't know you could pass a string in for the subplot arg :-) Call f.delaxes(s) where s is the subplot instance you want to remove JDH ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users