From: Jon P. <Jon...@no...> - 2004-08-30 09:25:23
|
Hi there I just recently upgraded my copy of matplotlib to 0.61 (from 0.54!) and have found a couple of my scripts no longer working. It seems that, for plot(), the argument markerfacecolor no longer takes a color triplet, but requires a string ('w', 'k' etc). markerEDGEcolor is still happy to take either form of color descriptor. On a different topic, imshow() only seems to display a single image at a time. e.g. in the following example, when image2 is drawn image1 is deleted. #------------------------------------------------- import matplotlib.matlab as mat myImage = mat.imread('image1.png') myImage2 = mat.imread('image2.png') mat.imshow(myImage, extent=[0,1,0,1]) mat.imshow(myImage2, extent=[1,2,1,2]) mat.axis([0, 2, 0, 2]) mat.show() #------------------------------------------------- Is that a known issue? Is there a workaround? all the best, Jon This message has been scanned but we cannot guarantee that it and any attachments are free from viruses or other damaging content: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. |