Hi, I have been trying to use the Affine2D transformation with pcolor and contour, with no success. The following script and comments illustrates my problems:
matplotlib.use('Agg') import matplotlib.pyplot as mpl from matplotlib.transforms import Affine2D import numpy as np image = np.random.random((100,100)) fig = mpl.figure() ax = fig.add_subplot(1,1,1) ax.pcolor(image, transform=Affine2D()) # Does not work - the image is not there! fig.savefig('test1.png') fig = mpl.figure() ax = fig.add_subplot(1,1,1) ax.contour(image, transform=Affine2D()) # Ok, but transformation wouldn't change anything anyway fig.savefig('test2.png') fig = mpl.figure() ax = fig.add_subplot(1,1,1) ax.contour(image, transform=Affine2D().scale(10.,10.)) # Does not work - the image is unchanged fig.savefig('test3.png') Is there a reason why transform doesn't work for contour and pcolor? Thanks for any help, 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