From: Bruce F. <br...@cl...> - 2010-02-23 17:03:36
|
I'm needing to keep two copies of a figure, with the properties different on one copy. However with logic like below, both copies remain the same regardless: #I want one copy with the defaul background and one to be transparent... imgname = GenFilename(20)+".png" imgsrc = "../dynamic/"+imgname if kml == 1: fig1 = fig fig1.frameon = False fig1.figurePatch.set_alpha(0.0) imgname1 = imgname[:-4] + "-kml.png" imgsrc1 = "../dynamic/"+imgname1 fig1.savefig(imgsrc1,dpi=100,transparent=True) fig.savefig(imgsrc,dpi=100) So, it appears that fig1=fig doesn't make a copy, but rather links these figures. Is there a way to make a true separate figure that will allow me to alter properties in the new copy without altering the original. Thanks! Bruce --------------------------------------- Bruce W. Ford Clear Science, Inc. br...@cl... http://www.ClearScienceInc.com Phone/Fax: 904-379-9704 8241 Parkridge Circle N. Jacksonville, FL 32211 Skype: bruce.w.ford Google Talk: fo...@gm... |