I feel like I'm doing this right, but it doesn't work. Any clues?
from matplotlib import pyplot as pp
pp.plot((1,2,3))
ax = pp.gca()
f = pp.figure(num=2)
print 'first: %i' % ax.figure.number
print 'second: %i' % f.number
f.add_axes(ax)
yields:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 606,
in add_axes
assert(a.get_figure() is self)
AssertionError
--
Christopher Brown, Ph.D.
Associate Research Professor
Department of Speech and Hearing Science
Arizona State University
http://pal.asu.edu
------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy
to use, easy to manage, easy to install, easy to extend.
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users