|
From: Jesper L. <jes...@gm...> - 2014-03-24 10:49:24
|
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 Pierre Haessig <pie...@cr...>: > 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 course a problem when the > > tiles are shown in a map. Please see example below. Can anyone see > > what I am doing wrong? > I've run your code and got no transparent pixels. > > print im.getcolors() > [(65536, (0, 0, 128, 255))] > > I also tried with __future__ division to see if there was something with > figsize = w/dpi, h/dpi, but got the same output > > best, > Pierre > > (python 2.7 on Linux, mpl 1.3.1) > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |