Re: [Matplotlib-users] polar stereographic projection

2013-09-11 Thread Jeff Whitaker
Sourav Chatterjee September 11, 2013 3:48 AMI am using 'spstere' for polar stereo graphic projection over Antarctica. The specifications llcrnrlat, llcrnrlon etc are specified in a python module. When I am doing it over north pole it is okay. But in South pole the latitude

Re: [Matplotlib-users] Basemap transform_vector for decreasing latitudes

2013-07-05 Thread Jeff Whitaker
kmanross July 2, 2013 12:42 PMGreetings!Relative newbie here.I'm trying to plot wind vectors using basemap quiver and to fit my orthoprojection. This is essentially a hack of Jeff Whitaker's animate.py foundat

Re: [Matplotlib-users] basemap meridians cut off

2013-07-05 Thread Jeff Whitaker
spmls July 5, 2013 10:58 AMHello,I've been having a problem in my basemap plots of areas with small spatialextents, where my meridians are cutoff like so:http://matplotlib.1069221.n5.nabble.com/file/n41409/Max_Water_Surface.png I've tried simplifying the code as much as

Re: [Matplotlib-users] basemap does not draw coastlines for certain choice of map boundaries

2013-05-11 Thread Jeff Whitaker
Sourish Basu May 8, 2013 5:50 AMHi all,I discovered recently that basmap does not draw the coastline contoursproperly for some choice of map boundaries. Specifically,from mpl_toolkits.basemap import Basemapmap

Re: [Matplotlib-users] basemap: polar stereographic projection and clabel

2013-02-27 Thread Jeff Whitaker
Marcello Vichi February 19, 2013 7:33 AMWhen I plot contours in a stereographic south pole plot with a bounding latitude and the rounded clipping Basemap(projection='spaeqd',lat_0=-90,lon_0=180,resolution='l',boundinglat=-40,round=True) I see that the contours are correctly

Re: [Matplotlib-users] basemap: polar stereographic projection and clabel

2013-02-27 Thread Jeff Whitaker - NOAA Federal
'white') o=m.drawmeridians(np.arange(0,360,30),labels=[1,1,1,1]) o=m.drawparallels(np.arange(-90,90,10),labels=[1,1,1,1]) cim=m.contour(x[:-1,:-1],y[:-1,:-1],sst,arange(2,28,2),linewidths=0.5,colors='k') plt.clabel(cim, inline=1, fontsize=10, fmt = '%.1f',) Jeff Whitaker February 27

Re: [Matplotlib-users] basemap: polar stereographic projection and clabel

2013-02-27 Thread Jeff Whitaker - NOAA Federal
im, inline=1, fontsize=10, fmt = '%.1f',) Jeff Whitaker February 27, 2013 11:59 AM Marcello: I cannot reproduce your problem. From the github pull request you mention, it seems like this was fixed about 3 months ago. What version of basemap are you run

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-17 Thread Jeff Whitaker
On 10/16/12 12:29 PM, Jeff Whitaker wrote: On 10/16/12 11:20 AM, Rich Signell wrote: Jeff, Yep, that worked! So here is a working example of OWSlib with Basemap: http://nbviewer.ipython.org/3900648/ I switched the Basemap projection to 'cyl' because we need to ensure that Basemap and WMS

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-16 Thread Jeff Whitaker
On 10/16/12 8:48 AM, Rich Signell wrote: Klo Jeff, I tried making a concrete example of using OWSlib with Basemap, but althought the WMS image looks good, the warpimage does not. http://nbviewer.ipython.org/3899690/ Do you see where I went wrong? Thanks, Rich Rich: warpimage assumes

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-16 Thread Jeff Whitaker
instance. -Jeff On Tue, Oct 16, 2012 at 11:38 AM, Jeff Whitaker jsw...@fastmail.fm wrote: On 10/16/12 8:48 AM, Rich Signell wrote: Klo Jeff, I tried making a concrete example of using OWSlib with Basemap, but althought the WMS image looks good, the warpimage does not. http

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-16 Thread Jeff Whitaker
a complicated beast to wrap. -Jeff On Tue, Oct 16, 2012 at 11:38 AM, Jeff Whitaker jsw...@fastmail.fm wrote: On 10/16/12 8:48 AM, Rich Signell wrote: Klo Jeff, I tried making a concrete example of using OWSlib with Basemap, but althought the WMS image looks good, the warpimage does

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-10 Thread Jeff Whitaker
On 10/10/12 2:38 PM, klo uo wrote: Hi Rich, On Tue, Oct 9, 2012 at 10:38 PM, Rich Signell wrote: It look like there was a wmsimage method in Basemap that was folded into a arcgisimage method? IIRC, it was named like that in the test cycle, then renamed correctly to arcgis I made my

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-10 Thread Jeff Whitaker
On 10/10/12 7:16 PM, klo uo wrote: On Wed, Oct 10, 2012 at 11:28 PM, Jeff Whitaker wrote: I wonder whether it would be better to use OWSlib (http://geopython.github.com/OWSLib/) for OGS/WMS support, instead of trying to roll our own solution. It only has ElementTree as a dependency. Klo

Re: [Matplotlib-users] error reading netcdf file

2012-09-26 Thread Jeff Whitaker
On 9/26/12 1:41 PM, Benjamin Root wrote: On Wed, Sep 26, 2012 at 2:07 PM, Michael Rawlins rawlin...@yahoo.com mailto:rawlin...@yahoo.com wrote: *From:* Benjamin Root ben.r...@ou.edu

Re: [Matplotlib-users] netcdf4-python build

2012-09-19 Thread Jeff Whitaker
On 9/19/12 11:30 AM, Michael Rawlins wrote: Ubuntu 12.04 hdf5-tools installed from package manager netcdf-bin and python-netcdf installed from package manager I downloaded netCDF4-1.0fix1.tar.gz http://code.google.com/p/netcdf4-python/downloads/detail?name=netCDF4-1.0fix1.tar.gzcan=2q=

Re: [Matplotlib-users] netcdf4-python build

2012-09-19 Thread Jeff Whitaker
On 9/19/12 3:29 PM, Michael Rawlins wrote: *From:* Jeff Whitaker jeffrey.s.whita...@noaa.gov *To:* Michael Rawlins rawlin...@yahoo.com *Sent:* Wednesday, September 19, 2012 4:57 PM *Subject:* Re

Re: [Matplotlib-users] Basemap: Coastlines intersecting with map boundary

2012-09-17 Thread Jeff Whitaker
On 9/17/12 5:09 AM, Joachim Saul wrote: Jeff, thanks for your feedback! A workaround for this (having drawcoastlines use line segments instead of polygons) is now part of this pull request: https://github.com/matplotlib/basemap/pull/78 Let's move discussion there.. -Jeff Jeff Whitaker

Re: [Matplotlib-users] Basemap: Coastlines intersecting with map boundary

2012-09-15 Thread Jeff Whitaker
On 9/15/12 8:05 AM, Joachim Saul wrote: Hi there, in basemap coastlines are apparently (always?) drawn as closed polygons not exceeding the map boundary, i.e. when the coastline intersects with the map boundary the polygon is continued along the map boundary until the next intersection

Re: [Matplotlib-users] error installing basemap

2012-09-13 Thread Jeff Whitaker
On 9/13/12 2:34 PM, Michael Rawlins wrote: *From:* Michael Droettboom md...@stsci.edu *To:* matplotlib-users@lists.sourceforge.net *Sent:* Thursday, September 13, 2012 2:09 PM *Subject:* Re: [Matplotlib-users] error

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://github.com

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 pull

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

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

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-27 Thread Jeff Whitaker
On 8/26/12 9:07 PM, klo uo wrote: On Sun, Aug 26, 2012 at 9:56 PM, Jeff Whitaker wrote: Klo: Since epsg codes comprise a very small subset of possible Basemap projections, it may be better to just allow Basemap to accept an epsg kwarg. That keyword would be required in order to use a WMS

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-27 Thread Jeff Whitaker
On 8/27/12 11:24 AM, klo uo wrote: On Mon, Aug 27, 2012 at 2:34 PM, Jeff Whitaker wrote: Klo: WMS servers use EPSG codes to define map projections - Basemap uses a set of kwargs. We need some way of inferring epsg codes from the Basemap kwargs. Alternatively, we could extend Basemap so

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-26 Thread Jeff Whitaker
On 8/26/12 5:44 AM, klo uo wrote: On Sun, Aug 26, 2012 at 12:18 AM, Jeff Whitaker jsw...@fastmail.fm wrote: Klo: The image in interpolated to the Basemap projection region. This is slow - the main reason to use the WMS is to avoid this by having it done on the server side. All right, that's

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-25 Thread Jeff Whitaker
On 8/24/12 10:20 PM, klo uo wrote: On Sat, Aug 25, 2012 at 1:26 AM, Jeff Whitaker wrote: Oh sure, it's simple! http://www.google.com/patents?id=J4YOEBAJdq=6618053 Hi Jeff, thanks for your reply. I was hoping to get response if there are ideas how this unfortunate performance can

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-25 Thread Jeff Whitaker
On 8/25/12 7:53 AM, Benjamin Root wrote: On Saturday, August 25, 2012, Jeff Whitaker wrote: On 8/24/12 10:20 PM, klo uo wrote: On Sat, Aug 25, 2012 at 1:26 AM, Jeff Whitaker wrote: Oh sure, it's simple! http://www.google.com/patents?id=J4YOEBAJdq=6618053 Hi

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-25 Thread Jeff Whitaker
On 8/25/12 9:50 AM, Jeff Whitaker wrote: On 8/25/12 7:53 AM, Benjamin Root wrote: On Saturday, August 25, 2012, Jeff Whitaker wrote: On 8/24/12 10:20 PM, klo uo wrote: On Sat, Aug 25, 2012 at 1:26 AM, Jeff Whitaker wrote: Oh sure, it's simple! http://www.google.com

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-25 Thread Jeff Whitaker
On 8/25/12 3:08 PM, klo uo wrote: On Sat, Aug 25, 2012 at 10:19 PM, Jeff Whitaker jsw...@fastmail.fm wrote: Klo: For cylindrical equidistant maps (projection='cyl') it will be easy, since the corner lat/lon values are all that is needed. For other projections, we'll need a way to translate

Re: [Matplotlib-users] basemap via macports

2012-08-24 Thread Jeff Whitaker
On 8/24/12 8:46 AM, Carlos Grohmann wrote: Hello all, I just did a fresh macports install, and installed py27-matplotlib-basemap, so all dependencies were installed as well. After installing python, I did run port-select (or something like it) to make sure I'm using macports python. My

Re: [Matplotlib-users] Background basemaps in Basemap

2012-08-24 Thread Jeff Whitaker
On 8/24/12 3:37 PM, klo uo wrote: I wanted to overlay some plot over map, and thought to use one of provided background maps that come with Basemap Result isn't that great as expected: loading bluemarble map took 1GB memory, and zooming i.e. Europe region on 1920x1080 screen is too blurred

Re: [Matplotlib-users] Get distances between points in basemap?

2012-08-21 Thread Jeff Whitaker
On 8/20/12 10:26 PM, Scott Henderson wrote: I'm trying to efficiently get the distances of all points on a map to a specified point. If the map is in projected coordinates, what is the best way of going about this? Is there is a 'standard' way to get the distance between points through

Re: [Matplotlib-users] basemap imshow() extents

2012-08-20 Thread Jeff Whitaker
On 8/20/12 4:41 PM, Scott Henderson wrote: I'm having trouble with transform_scalar() and imshow() with basemap. Essential I have data from satellite tracks that are either smaller or larger than the map extent, so I don't want to use Basemap.imshow() which sets the 'extent' keyword

Re: [Matplotlib-users] basemap imshow() extents

2012-08-20 Thread Jeff Whitaker
On 8/20/12 8:21 PM, Scott Henderson wrote: On Mon 20 Aug 2012 06:29:01 PM EDT, Jeff Whitaker wrote: On 8/20/12 4:41 PM, Scott Henderson wrote: I'm having trouble with transform_scalar() and imshow() with basemap. Essential I have data from satellite tracks that are either smaller or larger

[Matplotlib-users] ANN: basemap-1.0.5

2012-08-06 Thread Jeff Whitaker
Available for download at https://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-1.0.5/ Thanks to Christoph Gohlke for making windows installers. Highlights: - new 'latlon' keyword for contour,contourf,pcolor,pcolormesh,quiver,barb methods that automatically converts

Re: [Matplotlib-users] shadedrelief basemap question

2012-08-02 Thread Jeff Whitaker
On 8/1/12 4:09 PM, Scott Henderson wrote: Hi Jeff, I'm continuing to enjoy using basemap, but have a question about the shaded relief background. I frequently use greyscale shaded relief on the continents, but blue or white for the oceans. the shadedrelief() function is really convenient,

Re: [Matplotlib-users] Sources and tools for meteo data?

2012-07-24 Thread Jeff Whitaker
On 7/24/12 8:04 PM, Vladan Divljak wrote: Hi, I'm a physics student, and got interested in retrieving meteorological data (through Internet) I spent good couple of days to just make a picture of file formats providing this data, sources and tools for reading it, and then give up

Re: [Matplotlib-users] basemap-1.0.4 UTM support

2012-07-14 Thread Jeff Whitaker
). -Jeff On Fri, 2012-07-13 at 21:26 -0600, Jeff Whitaker wrote: On 7/13/12 8:18 AM, Stefan Mertl wrote: The UTM support is great. Thanks for that. Is there a possibility to display the projected coordinates without the reduction of the x/y coordinates to 0/0 in the left bottom corner

Re: [Matplotlib-users] basemap-1.0.4 UTM support

2012-07-13 Thread Jeff Whitaker
On 7/13/12 8:18 AM, Stefan Mertl wrote: The UTM support is great. Thanks for that. Is there a possibility to display the projected coordinates without the reduction of the x/y coordinates to 0/0 in the left bottom corner? Regards Stefan. Stefan: No - that's the only coordinate system

Re: [Matplotlib-users] draw track across the Dateline in Basemap

2012-07-03 Thread Jeff Whitaker
On 7/3/12 11:39 AM, fatuheeva wrote: Hello, I am wondering if Basemap has the ability to plot a track across the Dateline? Plotting longitudes that go across the Dateline (e.g., [175,177,179,-179,-176]) wraps the track back around the globe when it goes from 179 to -179. Instead, I want them

Re: [Matplotlib-users] problem with streamplot method in basemap-1.0.3(4)

2012-06-20 Thread Jeff Whitaker
On 6/20/12 5:50 PM, Nicolas wrote: Thanks Ben so streamplot will be part of a future stable release of matplotlib then ? one does not need the scikits.vectorplot installed ? No, it does not. That's an error created by copy and pasting code from lic_demo.py. I should not have included

Re: [Matplotlib-users] how can i set a projection area larger than data's geographical coverage?

2012-06-14 Thread Jeff Whitaker
On 6/14/12 7:52 AM, Yasin Selçuk Berber wrote: I want to set a projection area larger than data's geographical coverage. But data must still be georeferenced correctly inside map region and coastlines in projection area should still be visible outside data area. right now, the data is always

[Matplotlib-users] ANN: basemap toolkit 1.0.3

2012-05-18 Thread Jeff Whitaker
Available for download at https://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-1.0.3/ Thanks to Christoph Gohlke for making windows installers. Highlights: - new 'round' keyword for polar-centric plots (see polarmaps.py example). - the coastline filling bug has

Re: [Matplotlib-users] basemap and fill_between()

2012-05-13 Thread Jeff Whitaker
On 5/13/12 3:34 AM, David Craig wrote: Hi, I'm having a problem usinf fill_between() with basemap. I plot two great circles and want to shade the region between them. My code is below, it doesnt give any error just creates the plot without filling the area. Does anyone know if it's possible to

Re: [Matplotlib-users] installing basemap

2012-04-03 Thread Jeff Whitaker
On 4/3/12 3:09 AM, David Craig wrote: Hi again, So I removed everything and started again ( with version 1-0-2 :) ) but am still having trouble, GEOS_DIR seems to be set correctly but I get the following error when trying to make the GEOS library with, sudo make; make install make[3]:

Re: [Matplotlib-users] Could basemap plot in a UTM projection? - pyproj documentation

2012-04-02 Thread Jeff Whitaker
On 4/2/12 9:10 AM, Mathew Topper wrote: Hi, I've been trawling round the internet for a while trying to work out if basemap could be made to plot using a UTM zone projection. I've found some references to pyproj that could be used to convert out of a UTM projection, but I haven't found any

Re: [Matplotlib-users] Could basemap plot in a UTM projection? - pyproj documentation

2012-04-02 Thread Jeff Whitaker
On 4/2/12 10:03 AM, Mathew Topper wrote: On 02/04/12 16:21, Jeff Whitaker wrote: On 4/2/12 9:10 AM, Mathew Topper wrote: Hi, I've been trawling round the internet for a while trying to work out if basemap could be made to plot using a UTM zone projection. I've found some references

Re: [Matplotlib-users] Could basemap plot in a UTM projection? - pyproj documentation

2012-04-02 Thread Jeff Whitaker
On 4/2/12 11:23 AM, Jeff Whitaker wrote: On 4/2/12 10:03 AM, Mathew Topper wrote: On 02/04/12 16:21, Jeff Whitaker wrote: On 4/2/12 9:10 AM, Mathew Topper wrote: Hi, I've been trawling round the internet for a while trying to work out if basemap could be made to plot using a UTM zone

Re: [Matplotlib-users] installing basemap

2012-04-01 Thread Jeff Whitaker
On 3/31/12 5:48 AM, David Craig wrote: Hi, I previously installed basemap by using the yum command. This installed version 0.99.4. I want to install the latest version so I can use shaded relief etc. This may be more of a linux problem but as I am more familiar with python than linux I thought

Re: [Matplotlib-users] basemap problem

2012-02-26 Thread Jeff Whitaker
On 2/26/12 6:42 AM, David Craig wrote: Hi, I recently installed basemap and python imaging library on my laptop. I have an i686 machine with fedora 16 on it. I just tried some test plots and basemap seems to work fine but according to the documentation to use the bluemarble(), etopo(),

Re: [Matplotlib-users] Ploting a sparse matrix with imshow

2012-02-19 Thread Jeff Whitaker
On 2/19/12 1:18 PM, Jose Guzman wrote: Dear matplotlib users, I am trying to plot a nxn symetric matrix containing zeros (in white) and ones (in black). Quite simple, I guessed. For that I use imshow as follows: imshow(W, cmap=cm.binary) # W is a Numpy Array with shape (100,100) However,

Re: [Matplotlib-users] cmap.set_bad() not showing any effect with pcolor()

2012-02-09 Thread Jeff Whitaker
On 2/9/12 9:05 AM, Andreas H. wrote: Hi, I'm trying to use pcolor on a masked array. I would like masked elements to show up in a special color. I have written some code, but it does not seem to work: I would appreciate any help :) Cheers, Andreas. ---8--- import matplotlib as

Re: [Matplotlib-users] cmap.set_bad() not showing any effect with pcolor()

2012-02-09 Thread Jeff Whitaker
On 2/9/12 10:49 AM, Jeff Whitaker wrote: On 2/9/12 9:05 AM, Andreas H. wrote: Hi, I'm trying to use pcolor on a masked array. I would like masked elements to show up in a special color. I have written some code, but it does not seem to work: I would appreciate any help :) Cheers

Re: [Matplotlib-users] macosx lion installation challenges

2012-02-01 Thread Jeff Whitaker
On 2/1/12 7:11 AM, Ivan Lima wrote: You can also install the Enthought Python Distribution (EPD http://enthought.com/products/epd.php). It comes with everything (NumPy, Matplotlib, IPython, etc) and it is very easy to install on a Mac. - Ivan -- Ivan Lima Woods Hole Oceanographic

Re: [Matplotlib-users] Plotting irregular data without interpolation

2012-02-01 Thread Jeff Whitaker
On 2/1/12 9:15 AM, Benjamin Root wrote: On Wed, Feb 1, 2012 at 9:59 AM, Alexis Praga alexis.pr...@free.fr mailto:alexis.pr...@free.fr wrote: Hi, I have not found any documentation on plotting non regular data with basemap *without* interpolation. Plotting scattered data on

Re: [Matplotlib-users] Plotting irregular data without interpolation

2012-02-01 Thread Jeff Whitaker
On 2/1/12 9:39 AM, Jeff Whitaker wrote: On 2/1/12 9:15 AM, Benjamin Root wrote: On Wed, Feb 1, 2012 at 9:59 AM, Alexis Praga alexis.pr...@free.fr mailto:alexis.pr...@free.fr wrote: Hi, I have not found any documentation on plotting non regular data with basemap *without

Re: [Matplotlib-users] Using basemap to generate xyz format files from netcdf files

2012-01-20 Thread Jeff Whitaker
) gives you the projection coordinates. -Jeff On 19/01/12 16:54, Jeff Whitaker wrote: On 1/19/12 5:55 AM, Mathew Topper wrote: Hi, I was wondering how hard it would be to generate xyz format files from netcdf files using python-netcdf4 and basemap? It seems that basemap has the capabilities to do

Re: [Matplotlib-users] Suggestion for zooming (orthographic projection)

2012-01-19 Thread Jeff Whitaker
On 1/19/12 10:02 AM, Alexis Praga wrote: Hi, Trying the code at http://matplotlib.sourceforge.net/basemap/doc/html/users/ortho.html , for zooming in a certain region on a globe, I have found some issues with the approach provided. For example, it does not work on the poles. Here is my

Re: [Matplotlib-users] macosx lion installation challenges

2012-01-18 Thread Jeff Whitaker
On 1/18/12 1:10 PM, Hans-Martin v. Gaudecker wrote: I fought some time with NumPy, SciPy, and Matplotlib under the same configuration -- in the end I settled for re-installing Python via homebrew. Everything worked like a charme out of the box. Nice guide to be found here:

Re: [Matplotlib-users] Round plot with 'npstere'-projection

2012-01-17 Thread Jeff Whitaker
On 1/17/12 3:50 AM, Serhiy Hrechanyy wrote: Yes, they all make squares. Why is it so important the plot be round? Well, it is definitely not a matter of life or death. Just think that round polar plots look a bit nicer. I haven't tried your workaround solution yet (must do something urgent

Re: [Matplotlib-users] Round plot with 'npstere'-projection

2012-01-16 Thread Jeff Whitaker
On 1/16/12 11:08 AM, Serhiy Hrechanyy wrote: m = Basemap(projection = 'npstere', resolution = 'c', lat_0 = 90., lon_0 = 0., area_thresh = 1000., boundinglat = 40. ) one get a square map. Is there any way to make the map round, not square? No. Thanks, Jeff, could you suggest any other

Re: [Matplotlib-users] contourf with rgba colours

2011-12-27 Thread Jeff Whitaker
On 12/27/11 12:07 PM, Logi Ragnarsson wrote: Hello, Is it supposed to be possible to do a filled contour plot with alpha levels in the colour map? I'm plotting weather data on top of maps and would very much like to plot low levels of wind and precipitation as mostly transparent, with

Re: [Matplotlib-users] Griddata failling; how to try natgrid version?

2011-12-21 Thread Jeff Whitaker
On 12/21/11 12:31 AM, Brad Malone wrote: Hi, I'm still working on my interpolating from an irregularly space grid and then running pcolormesh on the resulting output. With some of the newer data I've been plotting I've noticed that my plots are complete garbage. I realized that this was

Re: [Matplotlib-users] basemap UTM conversion discrepancy

2011-12-19 Thread Jeff Whitaker
On 12/19/11 2:23 PM, Stefan Mertl wrote: Hello, I'm starting to use the mpl_toolkits.basemap.pyproj.Proj class to do lon/lat to UTM coordinate conversion. I did some tests and noticed that there is a discrepancy between the mpl_toolkits.basemap.pyproj.Proj output and the proj commandline

Re: [Matplotlib-users] basemap UTM conversion discrepancy

2011-12-19 Thread Jeff Whitaker
, 15:51 -0700 schrieb Jeff Whitaker: On 12/19/11 2:23 PM, Stefan Mertl wrote: Hello, I'm starting to use the mpl_toolkits.basemap.pyproj.Proj class to do lon/lat to UTM coordinate conversion. I did some tests and noticed that there is a discrepancy between the mpl_toolkits.basemap.pyproj.Proj

Re: [Matplotlib-users] Remapping scattered data

2011-12-18 Thread Jeff Whitaker
On 12/18/11 1:33 PM, Alexis Praga wrote: Hi, I may have found an issue with some map projections.When I try to plot markers on a given map, and change the center ofprojection, the markers' coordinates are not remapped correctly.If the marker's coordinates are not inside the new boundaries,

Re: [Matplotlib-users] Map projections and pyplot.plot

2011-12-01 Thread Jeff Whitaker
On 12/1/11 7:34 AM, Bruce Ford wrote: I have a basemap figure where data is placed atop, which can be in any number of differing projections. However, when I plot a line over it using pyplot.plot, the line doesn't show unless I'm using the cylindrical equidistant projection. From what I

Re: [Matplotlib-users] Map projections and pyplot.plot

2011-12-01 Thread Jeff Whitaker
, Dec 1, 2011 at 12:35 PM, Jeff Whitaker jsw...@fastmail.fm mailto:jsw...@fastmail.fm wrote: On 12/1/11 7:34 AM, Bruce Ford wrote: I have a basemap figure where data is placed atop, which can be in any number of differing projections. However, when I plot a line over

Re: [Matplotlib-users] Basemap drawparallels failed issue

2011-11-28 Thread Jeff Whitaker
On 11/22/11 12:51 PM, Dave Xia wrote: Hi, I am a new user of matplotlib Basemap. I tried to draw the latitude with interval 0.1 degree using drawparallels, but failed. I wonder if the drawparallels can draw latitude lines with small interval instead of integer values. (drawmeridian can

Re: [Matplotlib-users] Bug or feature: bbox of maps

2011-11-22 Thread Jeff Whitaker
On 11/21/11 8:45 PM, Arlindo da Silva wrote: Hi, (A similar issue was reported back in 7/4/11 without a definite solution, so I am reposting with some additional diagnostics. ) Up to Matplotlib 0.99 (EPD 6.3) the code snippet below produced a plot with an aligned colorbar as in the

Re: [Matplotlib-users] Meridians not show using Mercator projection

2011-11-18 Thread Jeff Whitaker
On 11/16/11 8:00 PM, Eric Firing wrote: On 11/16/2011 03:16 PM, Gökhan Sever wrote: Hi, Using the example code shown below I can't get meridians plotted on the screen: from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np m =

Re: [Matplotlib-users] Meridians not show using Mercator projection

2011-11-16 Thread Jeff Whitaker
On 11/16/11 6:16 PM, Gökhan Sever wrote: from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np m = Basemap(projection='merc',lon_0=-79, lat_0=25.5, llcrnrlon=-93, urcrnrlon=-63, llcrnrlat=14, urcrnrlat=36.2) m.drawcoastlines(linewidth=0.3)

Re: [Matplotlib-users] MODIS data and true-color plotting

2011-11-13 Thread Jeff Whitaker
On 11/13/11 12:40 PM, Gökhan Sever wrote: Hello groups, I have two questions about working with MODIS data. 1-) Is there any light Pythonic HDF-EOS wrapper to handle HDF-EOS data other than PyNIO [http://www.pyngl.ucar.edu/Nio.shtml] Although, I have managed to install that package from its

[Matplotlib-users] ANN: basemap toolkit 1.0.2

2011-11-05 Thread Jeff Whitaker
The basemap matplotlib toolkit 1.0.2 is available for download at https://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-1.0.2/ Documentation is at http://matplotlib.github.com/basemap including an example gallery that highlights it's capabilities

Re: [Matplotlib-users] [Basemap] savefig bbox_inches=tight

2011-10-27 Thread Jeff Whitaker
On 10/27/11 1:41 AM, Yoshi Rokuko wrote: if one saves a Basemap plot with savefig option bbox_inches='tight' geographical coordinates are cut: bmap = Basemap(...) bmap.drawparallels([those,numbers,are,gone], labels=[1,0,0,0]) bmap.drawmeridians([those,numbers,are,gone],

Re: [Matplotlib-users] memory error - netcdf plots

2011-10-19 Thread Jeff Whitaker
(*N.meshgrid(LON,LAT)) you can leave the other statements in. If you still have memory issues, bring the readshapefile call out, and draw the shapes whose coordinates are stored in the instance variable map.DSE_REGIONS manually in the loop. -Jeff On Fri, Oct 14, 2011 at 10:54 PM, Jeff Whitaker

Re: [Matplotlib-users] memory error - netcdf plots

2011-10-19 Thread Jeff Whitaker
. lines = LineCollection(map.DSE_REGIONS) ax.add_collection(lines) -Jeff but making those changes and removing the shapefile has sped the processing up considerably! Thank you for your help On Wed, Oct 19, 2011 at 11:42 PM, Jeff Whitaker jsw...@fastmail.fm mailto:jsw

Re: [Matplotlib-users] memory error - netcdf plots

2011-10-14 Thread Jeff Whitaker
On 10/12/11 8:20 PM, questions anon wrote: Hi All, I keep receiving a memory error when processing many netcdf files. I assumed it had something to do with how I loop things and maybe needed to close things off properly but I recently received an error that made me think it might be because

Re: [Matplotlib-users] Basemap shapelib change from 1.0.1 to 1.0.2

2011-10-10 Thread Jeff Whitaker
On 10/9/11 6:38 AM, Filipe Pires Alvarenga Fernandes wrote: On Thu, Oct 6, 2011 at 14:50, Jeff Whitakerjsw...@fastmail.fm wrote: On 9/29/11 9:44 AM, Filipe Pires Alvarenga Fernandes wrote: Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with the pure python shapelib.py.

Re: [Matplotlib-users] Fw: matplotlib - fill open path inside U.S. borders + sample map

2011-09-28 Thread Jeff Whitaker
On 9/27/11 5:37 PM, Jeff Whitaker wrote: On 9/27/11 4:57 PM, Isidora wrote: The attached map shows plotted fill paths whose filling extends only to the U.S. borders. Is there any way I could accomplish something like it using Basemap? Thanks Isidora: It's probably possible, but there's

Re: [Matplotlib-users] matplotlib - fill open path inside U.S. borders + sample map

2011-09-28 Thread Jeff Whitaker
On 9/28/11 2:19 PM, Isidora wrote: Hi Filipe, I have just seen your answers. I am trying to plot on a background GIF map, lines like the ones you can see in http://www.spc.noaa.gov/products/outlook/day1probotlk_2000_wind.gif. I can plot the lines as you see them in this link without a

Re: [Matplotlib-users] Fw: matplotlib - fill open path inside U.S. borders + sample map

2011-09-27 Thread Jeff Whitaker
On 9/27/11 4:57 PM, Isidora wrote: The attached map shows plotted fill paths whose filling extends only to the U.S. borders. Is there any way I could accomplish something like it using Basemap? Thanks Isidora: It's probably possible, but there's no simple recipe. The drawcoastlines

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2011-09-08 Thread Jeff Whitaker
On 9/8/11 1:51 AM, Jakob Malm wrote: Picking up on an old thread. Hopefully Jeff is still listening in... On 2010-04-04 23:24, Jeff Whitaker wrote: On 4/4/10 11:06 AM, Will Hewson wrote: Hi again Jeff et al... I've had a play around with the extra few lines of code - on paper this seems

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

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,lats]).T # lons

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

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 yo...@rokuko.net mailto:yo...@rokuko.net wrote: +- Jeff Whitaker ---+ On 7/14/11 2:25 PM, Yoshi Rokuko wrote: hi, is it possible

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-07 Thread Jeff Whitaker
On 3/6/11 8:58 PM, Juan A. Saenz wrote: Hi, I use Basemap and netCDF4-python on a regular basis, and find them very useful tools. Thank you for developing them! I noticed that when using basemap.interp for nearest neighbor (order=0) the interpolation is not masked, and nearest neighbor

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-07 Thread Jeff Whitaker
On 3/7/11 5:50 AM, Jeff Whitaker wrote: On 3/6/11 8:58 PM, Juan A. Saenz wrote: Hi, I use Basemap and netCDF4-python on a regular basis, and find them very useful tools. Thank you for developing them! I noticed that when using basemap.interp for nearest neighbor (order=0) the interpolation

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-07 Thread Jeff Whitaker
: The basemap interp function is just a convenience function for simple regridding (linear, cubic and nearest neighbor). scipy.interpolate (http://docs.scipy.org/doc/scipy/reference/interpolate.html) provides many more options. -Jeff On Mon, Mar 7, 2011 at 8:23 AM, Jeff Whitaker jsw...@fastmail.fm

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-07 Thread Jeff Whitaker
? In short, for your use case you'll have to implement your own custom solution. Of course, if you can show me a simple modification to the Basemap interp function that does what you want, and can be enabled with a kwarg, I'll reconsider. -Jeff On 8/03/11 12:23 AM, Jeff Whitaker wrote: On 3

Re: [Matplotlib-users] Adding zorder keyword argument to the mpl_toolkits.basemap.drawmapscale class?

2011-02-16 Thread Jeff Whitaker
On 2/16/11 9:04 PM, guillaume.ducl...@csiro.au wrote: Hi folks, I'm new to this list and first of all I'd like to thank all the matplotlib developers for putting together such a great package!! I've been using the Basemap toolkit recently and notice that the scale is generated on a

Re: [Matplotlib-users] Any update on streamline plot

2011-02-15 Thread Jeff Whitaker
On 2/14/11 4:54 PM, Benjamin Root wrote: On Mon, Feb 14, 2011 at 5:30 PM, John Hunter jdh2...@gmail.com mailto:jdh2...@gmail.com wrote: On Sun, Feb 13, 2011 at 11:45 PM, Tom Flannaghan tj...@cam.ac.uk mailto:tj...@cam.ac.uk wrote: It would also be helpful if anyone has

Re: [Matplotlib-users] Any update on streamline plot

2011-02-14 Thread Jeff Whitaker
On 2/13/11 10:45 PM, Tom Flannaghan wrote: Hi, I've written a script to roughly emulate the elegant streamline plots found in Mathematica. The code is available at http://www.atm.damtp.cam.ac.uk/people/tjf37/streamplot.py and example plots at

Re: [Matplotlib-users] Any update on streamline plot

2011-02-11 Thread Jeff Whitaker
On 2/11/11 9:10 AM, Gökhan Sever wrote: Hi, I see two related requests on: http://old.nabble.com/matplotlib-to-draw-streamlines--td28008708.html http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg07267.html a request filed on

Re: [Matplotlib-users] Any update on streamline plot

2011-02-11 Thread Jeff Whitaker
On 2/11/11 9:45 AM, Jeff Whitaker wrote: On 2/11/11 9:10 AM, Gökhan Sever wrote: Hi, I see two related requests on: http://old.nabble.com/matplotlib-to-draw-streamlines--td28008708.html http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg07267.html a request filed on http

Re: [Matplotlib-users] Plotting multi-colored lines atop basemap instances

2011-02-09 Thread Jeff Whitaker
On 2/9/11 7:51 AM, Bruce Ford wrote: I am attempting to plot a line atop a basemap instance called m. I can do this without a problem with: plot = m.plot(lon,lat,'r-') #lon and lat are lists However, I'd like to color the line based on a third list called intensity. For instance, if

Re: [Matplotlib-users] [basemap] ValueError: 'hammer' is an unsupported projection.

2011-01-31 Thread Jeff Whitaker
On 1/30/11 6:59 PM, Peter Smale wrote: Hi, I am using Basemap 1.0 and matplotlib 1.0 on Ubuntu 10.10. I would like to use the Hammer projection from the Basemap toolkit but when I use m = Basemap(resolution='c',projection='hammer',lon_0=180) I get an error (shown below). Does anyone know

Re: [Matplotlib-users] Extending readshapefile

2011-01-27 Thread Jeff Whitaker
On 1/27/11 6:35 AM, Thomas Lecocq wrote: Hi all, I would like to contribute to a better readshapefile method, who should I contact / where should I commit ? First improvement and partial solution : * returning a tuple of linecollections per record, with its name and other properties.

  1   2   3   4   5   6   >