Hello,

In the following example, I am trying to copy over existing collections from 
one plot to another:

import matplotlib.pyplot as mpl

fig = mpl.figure()
ax1 = fig.add_subplot(1,1,1)
ax1.scatter([0.5],[0.5])
fig.savefig('test1.png')

fig = mpl.figure()
ax2 = fig.add_subplot(1,1,1)
for c in ax1.collections:
    ax2.add_collection(c)
fig.savefig('test2.png')

However, the circle appears in the wrong place in test2.png (close to 0.4, 0.4 
instead of 0.5,0.5). Is it not possible/safe to copy over collections in this 
way? If not, then how should this be done?

Thanks,

Thomas
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to