Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-23 Thread Jeff Whitaker
On 7/23/11 9:32 AM, Yoshi Rokuko wrote: > +- Jeff Whitaker ---+ >> Here's the basic idea: >> >> 1) read the germany.dat file, use it to create a _geoslib Poly instance, >> i.e. >> >> from mpl_toolkits.basemap import _geoslib >> b = np.asarray([lons,la

Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-23 Thread Yoshi Rokuko
+- Jeff Whitaker ---+ > > Here's the basic idea: > > 1) read the germany.dat file, use it to create a _geoslib Poly instance, > i.e. > > from mpl_toolkits.basemap import _geoslib > b = np.asarray([lons,lats]).T # lons and lats are lists. > germany

Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-23 Thread Jeff Whitaker
+- Jeff Whitaker ---+ Jeff, I just had a thought Isn't the country borders drawn as Path or Polygon objects? I believe there are some matplotlib internal functions that can be given a list of points (such as those for a grid) and a path and i

Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-15 Thread Jeff Whitaker
On 7/15/11 12:55 PM, Benjamin Root wrote: On Fri, Jul 15, 2011 at 1:44 PM, Yoshi Rokuko > wrote: +- Jeff Whitaker ---+ > On 7/14/11 2:25 PM, Yoshi Rokuko wrote: > > hi, is it possible to restrict a conto

Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-15 Thread Benjamin Root
On Fri, Jul 15, 2011 at 1:44 PM, Yoshi Rokuko wrote: > +- Jeff Whitaker ---+ > > On 7/14/11 2:25 PM, Yoshi Rokuko wrote: > > > hi, is it possible to restrict a contour plot to a > > > country? if i grid my data to projection coordinates > > > an

Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-15 Thread Yoshi Rokuko
+- Jeff Whitaker ---+ > On 7/14/11 2:25 PM, Yoshi Rokuko wrote: > > hi, is it possible to restrict a contour plot to a > > country? if i grid my data to projection coordinates > > and then make a contour plot i can draw the country > > borders on

Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-15 Thread Jeff Whitaker
On 7/14/11 2:25 PM, Yoshi Rokuko wrote: > hi, is it possible to restrict a contour plot to a > country? if i grid my data to projection coordinates > and then make a contour plot i can draw the country > borders on top, but since the data plotted outside > the country is a gridding artifact i would