[matplotlib-devel] the 32768 pixel limit

2011-05-25 Thread Feng Yu
Dear list, I am trying to work with matplotlib to plot on an AGG canvas of size 5x1100. It seems to be the constraint is in AGG. Does anybody has experience in this regard? After removing the exception about the image size and replacing 'int' with long long, figimage correctly puts an image

[matplotlib-devel] Alpha channel in imshow, bug or gamma correction?

2011-10-05 Thread Feng Yu
Dear Lists, I tried to draw a white block with alpha-channel gradient on top of black. The result appears to be non-linear, and I think it is problematic. image = ones((255, 255, 4), dtype='u1') image[:, :, 0:3] = 255 image[:, :, 3] = arange(0, 255)[:, newaxis] gca().set_axis_bgcolor('k') imshow(