Re: [Matplotlib-users] Need some help adjusting placement of colorbar in basemap-derived graphic

2008-12-17 Thread Roger André
Hi Jeff, Thanks very much for this bit of code that you sent me. I got some graph paper out and plotted all of the axes in your code and it finally all made sense. Roger -- On Fri, Dec 12, 2008 at 3:50 PM, Roger André ran...@gmail.com wrote: Thanks Jeff, I'll study your code and will see

Re: [Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-16 Thread Roger André
: Roger André wrote: Hi All, I have some square images which were generated via WMS requests. I have imported them into Matplotlib via pil_to_array, and then display them in a Basemap instance where I have defined the projection as: m = Basemap(projection='cyl', lon_0=lon_0, llcrnrlon=ll_lon

Re: [Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-16 Thread Roger André
is use these images as figures in a report, so I need to be able to add Axes with labeling, and also Figure titles and text. Thanks, Roger -- On Tue, Dec 16, 2008 at 9:53 AM, Jeff Whitaker jsw...@fastmail.fm wrote: Roger André wrote: Hi Jeff, I checked, and no the images

Re: [Matplotlib-users] GMT-like color maps

2008-12-16 Thread Roger André
Hi Michael, I may be completely off my rocker here, but I think that you can define the range of Z values that the ramp should be applied to with the Normalize function. cmap = matplotlib.colors.LinearSegmentedColormap('my_colormap',cdict,256) norm = mpl.colors.Normalize(vmin=.0, vmax=1.0) I'm

[Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-15 Thread Roger André
Hi All, I have some square images which were generated via WMS requests. I have imported them into Matplotlib via pil_to_array, and then display them in a Basemap instance where I have defined the projection as: m = Basemap(projection='cyl', lon_0=lon_0, llcrnrlon=ll_lon, llcrnrlat=ll_lat,

[Matplotlib-users] Need some help adjusting placement of colorbar in basemap-derived graphic

2008-12-12 Thread Roger André
Hi All, I'm very new to Matplotlib and am having some trouble getting a colorbar to be positioned and sized I want it to. A big part of the problem is that I have adapted several examples from the Cookbook and Gallery, just to see if I could roughly approximate what I want to see, and now am

Re: [Matplotlib-users] Need some help adjusting placement of colorbar in basemap-derived graphic

2008-12-12 Thread Roger André
Thanks Jeff, I'll study your code and will see if I can adapt it for my use. Great tool also, Roger -- On Fri, Dec 12, 2008 at 3:20 PM, Jeff Whitaker jsw...@fastmail.fm wrote: Roger André wrote: Hi All, I'm very new to Matplotlib and am having some trouble getting a colorbar