Hi,

I'm trying to plot a grid of images with no spaces in between them and I
have problems with the snapping. The grid is computed in data coordinates
and the positions of the images are determined by the extents parameter

ax.imshow(read_png(filename), extent=extent, snap=True)


The images and extents are always the same size and each image starts where
the last finished

(x0, x0+dx, y0, y0+dy)
(x0+dx, x0+2*dx, y0, y0+dy)
etc...


but it seems something happens in the backend (both QT4 and GTKAgg) and
pixel seams are visible between the images at various zoom levels.

It seems the ImageGrid was developed to fix this kind of problem, but I'm
not sure I can adapt my plot to use ImageGrid. I want to draw stuff over my
images and I need to position them in data coordinates.

I've tried the snap=True parameter to imshow and it doesn't seem to affect
the output.

Does anyone have a simple solution to this problem which eliminates the
seams?

thanks,
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to