Hi all,

I want to implement a web map server (WMS) using matplotlib/basemap.
The client of WMS does specify the bounding box in lon/lat and width
and height of the image. The spec requires that the server produces
such images without blank spaces around the image. The image might
thus have a wrong aspect ratio and it is up to the client of the WMS
to display the image correctly.

I ran in exactly the same problem as described here:

http://www.nabble.com/fill-entire-figure-area---DONT-maintain-aspect-ratio-td22365115.html

But I found as work around to this problem. If the aspect ratio of the
axis is set to auto (ax.set_aspect("auto")) before the figure is
saved, then one obtains a stretched figure (as required). Is this a
proper solution, are just a trick that will probably no longer work in
future version of basemap? I'm asking because the previous emails on
this issue indicate that basemap is intended to produce always images
in the correct aspect ratio.


Thanks and regards

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to