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