On Mon, Apr 5, 2010 at 10:05 AM, Michael Droettboom <md...@stsci.edu> wrote:
>> 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')
>>
> The image is there, it's just in the lower left corner of the figure,
> outside of the axes.

Note that the transform is a transform to the canvas coordinate (in
pixel scale).

-JJ

------------------------------------------------------------------------------
Download Intel&#174; 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