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 ))

show()
########################

Thanks in advance,

Julien


-- 
python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\
9&1+,\'Z4(55l4('])"

"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)


------------------------------------------------------------------------------
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

Reply via email to