On Thu, Jun 14, 2012 at 11:08 AM, tcb <thecolourblu...@gmail.com> wrote:
> 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,
>
>
>
Could you try out the latest version of matplotlib from the master branch?
There have been some work in this area in the past few months. I don't
know if any of that work went into the recently announced v1.1.1-rc2.
Ben Root
------------------------------------------------------------------------------
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
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel