[Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Jesper Larsen
Hi matplotlib users, I am using matplotlib to produce plots (tiles) in a Web Map Service. Unfortunately I cannot get Matplotlib to plot on the entire image. There are one transparent (pixel) line at the bottom and one transparent line at the right. This is of course a problem when the tiles are sh

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Pierre Haessig
Hi, Le 24/03/2014 10:45, Jesper Larsen a écrit : > I am using matplotlib to produce plots (tiles) in a Web Map Service. > Unfortunately I cannot get Matplotlib to plot on the entire image. > There are one transparent (pixel) line at the bottom and one > transparent line at the right. This is of co

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Jesper Larsen
Thanks Pierre, from __future__ import division did not help me, I am using mpl 1.1.1rc. I will try upgrading to a newer version of mpl and report back whether that helps. My output is: [(511, (255, 255, 255, 0)), (65025, (0, 0, 128, 255))] Best regards, Jesper 2014-03-24 11:27 GMT+01:00 Pierr

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Nicolas Rougier
If you do not draw at all (no pcolor call), do you still get transparent colors ? If yes, what is your .matplotlibrc ? Nicolas On 24 Mar 2014, at 11:49, Jesper Larsen wrote: > Thanks Pierre, > > from __future__ import division did not help me, I am using mpl 1.1.1rc. I > will try upgradi

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Phil Elson
I fixed an issue related to this (I too was producing map tiles) in matplotlib v1.2 I believe. The original issue can be found at https://github.com/matplotlib/matplotlib/pull/1591 and so I suggest this might not be an issue with matplotlib >= v1.3. Incidentally, if you are producing map tiles yo

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Jesper Larsen
Hi Nicolas, Then everything is transparent. I have no .matplotlibrc file. I pulled the most recent version of mpl. And that solved the issue. Best regards, Jesper 2014-03-24 12:09 GMT+01:00 Nicolas Rougier : > > > If you do not draw at all (no pcolor call), do you still get transparent > colo

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Jesper Larsen
Hi Phil, Yes, I can confirm that upgrading fixes the issue. Thanks for the pointer to cartopy. Best regards, Jesper 2014-03-24 12:13 GMT+01:00 Phil Elson : > I fixed an issue related to this (I too was producing map tiles) in > matplotlib v1.2 I believe. > > The original issue can be found a