[Matplotlib-users] [basemap] EASE grid projection

2012-08-28 Thread Jose Gomez-Dans
Hi, I'd like to plot some EASE Grid global data (the EASE grid is defined for a cylindrical equal area projection). In proj4 parlance, it is defined as +proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +a=6371228 +b=6371228 +units=m +no_defs My data are gridded, and I want to use either pcolormesh or i

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-28 Thread klo uo
On Mon, Aug 27, 2012 at 9:32 PM, Jeff Whitaker wrote: > > Klo: Yes. And vice versa, some of those 4500 projections aren't supported > by Basemap. > > Anyway, I went ahead and created a prototype 'wmsmap' method. You can try it > by cloning my fork (https://github.com/jswhit/basemap) and running >

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-28 Thread Jeff Whitaker
On 8/28/12 9:56 AM, klo uo wrote: > On Mon, Aug 27, 2012 at 9:32 PM, Jeff Whitaker wrote: >> Klo: Yes. And vice versa, some of those 4500 projections aren't supported >> by Basemap. >> >> Anyway, I went ahead and created a prototype 'wmsmap' method. You can try it >> by cloning my fork (https://g

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-28 Thread klo uo
>> Jeff it looks great, everything is parametrized including server name >> and map name, so it should work for any additional service. >> However on Windows with Python 2.7 and Basemap 1.0.5 I get an error >> while trying to run the script: > > > Klo: Just added a pull request for this > > https:

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-28 Thread klo uo
Jeff, I just thought to mention this: function name "wmsmap" maybe should be changed to "restmap" as for WMS servers will need to do another template. Here is example urllib call for sample WMS function GetMap: basemap_url = "\ http://geonetwork3.fao.org/ow

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-28 Thread Jeff Whitaker
On 8/28/12 12:09 PM, klo uo wrote: > Jeff, I just thought to mention this: function name "wmsmap" maybe > should be changed to "restmap" as for WMS servers will need to do > another template. Here is example urllib call for sample WMS function > GetMap: Klo: Let's move this discussion over to the

Re: [Matplotlib-users] [basemap] EASE grid projection

2012-08-28 Thread Jeff Whitaker
On 8/28/12 9:31 AM, Jose Gomez-Dans wrote: Hi, I'd like to plot some EASE Grid global data (the EASE grid is defined for a cylindrical equal area projection). In proj4 parlance, it is defined as +proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +a=6371228 +b=6371228 +units=m +no_defs My data are

[Matplotlib-users] Legend Marker Color Bug

2012-08-28 Thread Sterling Smith
List, Consider the following script: import pylab pylab.plot(pylab.linspace(0,1,100),label='Test',marker='o',ls='') pylab.plot(pylab.linspace(0,1,100),label='Test2',marker='o',ls='-') leg=pylab.legend(loc='best') line=leg.get_lines() line[0].set_color('black') line[1].set_color('black') pylab.dra

Re: [Matplotlib-users] [basemap] EASE grid projection

2012-08-28 Thread Jeff Whitaker
On 8/28/12 9:31 AM, Jose Gomez-Dans wrote: Hi, I'd like to plot some EASE Grid global data (the EASE grid is defined for a cylindrical equal area projection). In proj4 parlance, it is defined as +proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +a=6371228 +b=6371228 +units=m +no_defs My data are

Re: [Matplotlib-users] Need help with direction field plot

2012-08-28 Thread pf4d
I didn't try out your code, but I created a solution here (complete code) : Output : http://matplotlib.1069221.n5.nabble.com/file/n38697/8.png -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Need-help-with-direction-field-plot-tp24886p38697.html Sent from the matplo