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 cir

Re: [Matplotlib-users] Quiver plot of a netcdf file

2009-06-15 Thread Jeff Whitaker
JPKay wrote: > Hello, > > Now that I have correctly imported the NetCDF file and set up the kind of > projection I am interested in having the data displayed over I am having > trouble plotting my data with the quiver function. I am interested in > plotting the principal vectors of the stress fiel

Re: [Matplotlib-users] Axes.frame vs. Axes.spines in SVN Basemap and Matplotlib? (was New contourf()...)

2009-06-16 Thread Jeff Whitaker
Andrew Straw wrote: > Zane Selvans wrote: > >> Yep, looks like the trunk has fixed the contourf() issue. >> >> Unfortunately there also seems to be some new incompatibility with the >> Basemap toolkit, even after re-installing Basemap from source. I get: >> >> AttributeError: Axes.frame was rem

Re: [Matplotlib-users] Basemap & ax parameter : bug or feature ?

2009-06-23 Thread Jeff Whitaker
Pierre GM wrote: > All (and Jeff W. in particular), > > It's the time of the year where I have to draw maps in batch. I wrote > a script to process some data recorded at various stations, > interpolate the data on a grid, draw the corresponding contours on a > basemap, add a colorbar, and end

Re: [Matplotlib-users] Basemap & ax parameter : bug or feature ?

2009-06-23 Thread Jeff Whitaker
Pierre GM wrote: > > On Jun 23, 2009, at 8:27 AM, Jeff Whitaker wrote: >> >> Pierre: The reason I did it that way was so that the basemap >> instance could be created independent of any axes instances. For >> instance, you can create a basemap instance before a

Re: [Matplotlib-users] Basemap & ax parameter : bug or feature ?

2009-06-24 Thread Jeff Whitaker
Pierre GM wrote: > On Jun 23, 2009, at 6:01 PM, Jeff Whitaker wrote: > >> Pierre: Doing what you suggest (having Basemap.__init__ >> automatically set self.ax to the current axes) will break pickling, >> so I can't do that. >> > > Oh, I&

Re: [Matplotlib-users] Pre-defined binning with hexbin ... impossible?

2009-07-01 Thread Jeff Whitaker
Alexandar Hansen wrote: > Hello, > > I've been struggling with this for a while now and have effectively > two issues. One, how can I define the range over which hexbin ... > bins? And two, how do I change the background color of a plot? Alexandar: To change the background color to the lowest v

Re: [Matplotlib-users] Basemap: GEOS_ERRORs

2009-07-02 Thread Jeff Whitaker
Stephane Raynaud wrote: > Hi (Jeff), > > > I recently performed updates to matplotlib and basemap. > >From this time, I have a random and reccurent error when I create a > Basemap instance. > Here is one example : > > from mpl_toolkits.basemap import Basemap Basemap(**{'lon_0': -4.5250

Re: [Matplotlib-users] gps-satellite sky-plot

2009-07-02 Thread Jeff Whitaker
Massimo Di Stefano wrote: > Hi All, > > > i'm starting to learn matplotlib, > for my study i need to parse the nmea sentence from a gps > and plot a "sky graphic" to plot satellite visibility. > > (i tried to write code from scratch ... it works but my teacher > suggest me to not reinvent the we

Re: [Matplotlib-users] Empty squares at end of data after interpolation with griddata?

2009-07-05 Thread Jeff Whitaker
Rick Muller wrote: > Having one last problem with matplotlib. I have some data that I'm > interpolating with griddata, and then plotting with contourf. For > reasons that escape me, the upper right and the lower left squares are > not being plotted. I'm printing out a 10x10 version of this to >

Re: [Matplotlib-users] Where to put MPL/Basemap data files?

2009-07-07 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > In trying to freeze my app using bb-freeze > (http://pypi.python.org/pypi/bbfreeze/), I stumbled upon a problem: > the app is correctly freezed, but it then looks for the Basemap > datafiles and since cannot find them, fails to start (with a message >

Re: [Matplotlib-users] Where to put MPL/Basemap data files?

2009-07-07 Thread Jeff Whitaker
, is there any way to tell an > application to look for the data in a specific directory? > > No. -Jeff > Best regards, > > 2009/7/7 Jeff Whitaker : > >> Mauro Cavalcanti wrote: >> >>> Dear Jeff & ALL, >>> >>> In tryi

Re: [Matplotlib-users] speeding-up griddata()

2009-07-13 Thread Jeff Whitaker
Robert Cimrman wrote: > Hi all, > > I would like to use griddata() to interpolate a function given at > specified points of a bunch of other points. While the method works > well, it slows down considerably as the number of points to > interpolate to increases. > > The dependence of time/(number

Re: [Matplotlib-users] unable to plot multiple lines with plot?

2009-07-14 Thread Jeff Whitaker
per freem wrote: > hi all, > > i'm getting very strange behavior from the matplotlib 'plot' function > when attempting to plot multiple lines. i have a series of x, y data > points that are being generated in a loop and i want to simply plot > each of them on the same plot. my code is: > > impor

Re: [Matplotlib-users] griddata returns nan

2009-07-22 Thread Jeff Whitaker
plankton wrote: > Greetings all, > > I rotate a vector field and than I tried to interpolate it to a new grid > using griddata. > > CODE: > > x_grid_unique = unique(x_grid) > y_grid_unique = unique(y_grid) > x_meshgrid, y_meshgrid = meshgrid(x_grid_unique, y_grid_unique)

Re: [Matplotlib-users] speeding-up griddata()

2009-07-23 Thread Jeff Whitaker
Denis-B wrote: > Robert C, Robert K, folks, > > messing with the nice delaunay/testfuncs.py to time > linear_interpolate_grid nn_interpolate_grid and nn_interpolate_unstructured > in _delaunay, I see linear ~ 100 times faster than the nn_ s: > > # from: trigrid Ntri=1000 Ngrid=100 run: 21 Jul 20

Re: [Matplotlib-users] speeding-up griddata()

2009-07-24 Thread Jeff Whitaker
Denis-B wrote: > > Jeff Whitaker wrote: > >> Denis: I have added an 'interp' keyword to griddata (svn revision 7287) >> so you can choose the faster linear interpolation with interp='linear'. >> >> >> > > Thanks Jeff, &

Re: [Matplotlib-users] Equal area projection

2009-07-27 Thread Jeff Whitaker
Angus McMorland wrote: > Hi all, > > I've recently implemented a simple equal area (Lambert) projection in > mpl, using two polar Axes (to draw each hemisphere), and this > currently works fine to draw lines and points, since I'm transforming > the points in my own code, from 3d-polar to 2d-project

Re: [Matplotlib-users] define standard longitude for lambert conformal projection

2009-08-03 Thread Jeff Whitaker
Ufuk Utku Turuncoglu wrote: > Hi, > > Is there any way to set standard longitude value for lambert conformal > projection. My current basemap parameters are, > > m = Basemap(projection='lcc', > lat_1=30.0, > lat_2=60.0, > lat_0=40.0, > lon_0=16.0, >

Re: [Matplotlib-users] Basemap and UTM Coordinates

2009-08-06 Thread Jeff Whitaker
Anja Roesel wrote: > Dear list, > > I am a matplotlib newbie and I have some simple problems with the > coordinate reprojection. > > I have a landsat scene in UTM Projection and I would like to plot it in > a polarstereograhic projection (it is in the Arctic) > > I tried it like this: > m=Basemap(r

Re: [Matplotlib-users] detailed political boundaries & major cities for basemap

2009-08-06 Thread Jeff Whitaker
P.R. wrote: > Hi, > Im looking for a tutorial/method/dataset to setup more detailed political > boundaries & also automatically generate major cities on a basemap > projection. > > Please help, > Thanks, > P.R.M. > > P.R.: If you have ESRI shapefiles with political boundaries and/or city data,

Re: [Matplotlib-users] Basemap and UTM Coordinates

2009-08-07 Thread Jeff Whitaker
Anja Roesel wrote: > Thanks Jeff, that's actually what I wanted to know. > Unfortunately I guess, there is a small difference between Transverse > Mercator and Universal Transverse Mercator Projections > Do I have the possibility to define somewere the UTM zone and the Datum > of my Projection. > I

matplotlib-users@lists.sourceforge.net

2009-08-11 Thread Jeff Whitaker
P.R. wrote: > Hi, > I just updated to the latest versions of mpl & basemap. > Im getting strange output when using the quiver function from basemap (see > attached image). > > I ran the quiver_demo scripts for both basemap & also mpl, and the output > looked normal. > > Im using pygrads, a python i

matplotlib-users@lists.sourceforge.net

2009-08-11 Thread Jeff Whitaker
n was also doing this to convert to simple ndarrays > (a while back, I was recommended this method to solve a problem I was having > with quiver performing really slowly when using those grads masked arrays as > input) > > x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel

Re: [Matplotlib-users] force aspect ratio in basemap

2009-08-12 Thread Jeff Whitaker
Alexander Barth wrote: > 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.

Re: [Matplotlib-users] contourf interpolation/smoothness

2009-08-13 Thread Jeff Whitaker
Eric Firing wrote: > P.R. wrote: > >> This has probably been asked before, so I apologize... >> >> Is it possible to improve the smoothness/interpolation used in contourf? >> I know that the interpolation can be set for imshow(pcolor?), but I couldn't >> see how to set it for contourf. >> >> Rig

Re: [Matplotlib-users] contourf interpolation/smoothness

2009-08-13 Thread Jeff Whitaker
lats and lons defining the output grid by dividing the input grid size by 2. Is there something in the docstring that is not clear? -Jeff > -Original Message- > From: Jeff Whitaker [mailto:jsw...@fastmail.fm] > Sent: 2009-08-13 7:15 AM > To: Eric Firing > Cc: P.R.; matp

Re: [Matplotlib-users] colormap creation

2009-08-14 Thread Jeff Whitaker
P.R. wrote: > Can someone please recommend a (semi) automatic way to create the rgb > dictionaries needed for colormap creation? > Basically, I have a 'general' idea of how I want my colors ordered, but Im > finding it difficult to create the smooth transitions by manually editing > the rgb diction

Re: [Matplotlib-users] basemap day and night

2009-08-24 Thread Jeff Whitaker
Arto Oksanen wrote: > Thanks Jeff! > > That is just a perfect solution!! > > arto Arto: I've cleaned up that example and added it to svn as examples/daynight.py. -Jeff > > 2009/8/24 Jeff Whitaker mailto:jsw...@fastmail.fm>> > > Arto Oksanen wrote: &g

Re: [Matplotlib-users] heatmap and masked values

2009-08-27 Thread Jeff Whitaker
Christian Meesters wrote: > Hi, > > I have a 2D masked array, created like: > > import numpy as np > data = np.ma.array(data, mask=[data == 'NA']) > > which I would like to plot as a heatmap. > > import pylab > > pylab.pcolor(data) > or > pylab.pcolormesh(data) > > Well, it works with any array, bu

Re: [Matplotlib-users] heatmap and masked values

2009-08-27 Thread Jeff Whitaker
Christian Meesters wrote: >> Christian: That should work, if you created the masked array >> correctly. Why are you creating the mask with data=='NA'? I suspect >> that this always evaluates to False, so you don't get a mask. You >> probably want to check for a numeric value, not a string.

Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-28 Thread Jeff Whitaker
Michael Droettboom wrote: > It's important to note that we're not, as far as I'm aware, > considering anything lighting or ray-tracing-like yet. I'm not sure > that Phong shading actually makes sense without doing that. The > Gouraud shading we're in the process of implementing uses only > ex

Re: [Matplotlib-users] Fetching a data slab with NetCDFFile

2009-09-09 Thread Jeff Whitaker
ating the time axis, > > In [20]: taxvals = timedata[:] > > In [21]: taxvals > Out[21]: array([ 32712.5, 32743. , 32773.5, 32804. , 32834.5, > 32865.5, 32895. , 32924.5, 32955. , 32985.5, 33016. , 33046.5, > 33077.5]) > > In [22]: num2date(taxvals,timedata.units,t

Re: [Matplotlib-users] Fetching a data slab with NetCDFFile

2009-09-09 Thread Jeff Whitaker
thon2.5/site-packages/netCDF4.so > in netCDF4.Variable._get (netCDF4.c:18945)() > > RuntimeError: NetCDF: Variable has no data in DAP request > > -- > > Well, at least the error messages are different... > > Thanks again for all the assistance. It would be

Re: [Matplotlib-users] Fetching a data slab with NetCDFFile

2009-09-10 Thread Jeff Whitaker
too), but (2) since there seems > to be some discordance w.r.t. the IPCC data (where we believe the > units and calendar must actually be present) one cannot be absolutely > sure that all of the problems experienced are solely due to malformed > data descriptions. Evidently more detective wo

Re: [Matplotlib-users] matplotlib with tk? online examples fail...

2009-09-25 Thread Jeff Whitaker
Jonathan Tomshine wrote: > I'm quite new to python, but am attempting to add basic plotting > functionality to a tk-based GUI application that is run primarily on a > Mac. My initial attempts at simply calling "plot" or "errorbar" from > within the application resulted in erratic behavior on Pytho

Re: [Matplotlib-users] Basemap calls to colorbar() failing

2009-09-28 Thread Jeff Whitaker
Ryan May wrote: > Jeff, > > Right now, for me, any Basemap example that uses colorbar() is broken > for me. I think there's a problem with how Basemap sets the current > 'image' so that a colorbar can be automatically generated for plots. > The code currently does: > > plt.gci._current = ret >

Re: [Matplotlib-users] basemap, transform_scalar question

2009-09-29 Thread Jeff Whitaker
John [H2O] wrote: > I'm trying to 'automate' a few components within basemap. I have a pretty > complicated, and assuredly poorly written, set of functions that allow me to > 'dynamically' plot a grid of data (lon,lat). > > Here is one section where I try to deal with transforming the data based on

Re: [Matplotlib-users] Basemap and clim, has this changed in 0.99

2009-09-29 Thread Jeff Whitaker
Evan Mason wrote: > Hi, I've just upgraded to mpl 0.99 (from svn) and Basemap (also from svn). > > > Evan: I believe Ryan May just fixed this yesterday - so if you update basemap from svn again it should work. -Jeff > It seems that plt.clim(vmin,vmax) no longer works with Basemap > objects.

Re: [Matplotlib-users] Basemap drawcoastlines issue

2009-10-05 Thread Jeff Whitaker
Scott Sinclair wrote: >> 2009/10/1 ringobelingo : >> I would like to add coastlines to a map but do not want interior >> 'coastlines'. At present, without them my continents are not distinct enough >> from the data I am plotting in the background. But, when I draw them using >> drawcoastlines(), I

Re: [Matplotlib-users] basemap, transform_scalar question

2009-10-08 Thread Jeff Whitaker
Dict() > H.name = 'working example' > H.outlat0 = -90 > H.numygrid = 180 > H.dyout = 1. > H.outlon0 = -179 > H.numxgrid = 360 > H.dxout = 1.0 > H.data = np.random.rand(H.numygrid,H.numxgrid) > print H.data.shape > fig = plot_imsho

Re: [Matplotlib-users] readshapefile

2009-10-11 Thread Jeff Whitaker
Steve Westenbroek wrote: > Hi Jeff, > > I apologize in advance for contacting you directly, however, I've been > Googling and RTFM-ing to no avail! > > If you have time and/or inclination, I have two questions for you > regarding the Basemap module under Matplotlib. > > 1) I've been struggling to u

Re: [Matplotlib-users] basemap, transform_scalar question

2009-10-11 Thread Jeff Whitaker
John [H2O] wrote: > Jeff Whitaker wrote: > >> John: I don't have time to look at your code right now, but let me just >> make some general comments about plotting images on maps. If you want >> to use imshow, the data your are plotting must coincide exactly wit

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Jeff Whitaker
KURT PETERS wrote: > I'm pretty sure I have all the required minimal dependencies > installed, but get an error when I sudo python setup.py build. Any > thoughts? I can start python and import Tkinter without an error. So > I don't know why it's not finding it. > > [code] > sudo python setup.

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread Jeff Whitaker
qu...@gmx.at wrote: > Greetings. > > What i want to do is something like: > > ipython ... > > > > t=linspace(0,2,50) > y=sin(2*pi*t) > > pyplot.plot(t,y) > pyplot.show() > > > > I get the plot here ... but now i want to do some more stuff in > the ipython shell (and possibly have the plot

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Jeff Whitaker
emove and 0 not upgraded > > Please see my latest... This is amazingly difficult. Didn't remember > it being this hard when I did it on my Suse machine. > > Kurt So where's your tk.h file? -Jeff > > == > > Date: Tue, 13 Oct 2009 13:46:2

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Jeff Whitaker
KURT PETERS wrote: > Apparently, I have two :-) > > $ sudo find / -name "tk.h" > > /usr/include/tcl8.4/tk.h > /usr/include/tcl8.4/tk-private/generic/tk.h But you need /usr/include/tcl8.5/tk.h. Matplotlib is detecting a tk 8.5 installation, so it's looking for a tk 8.5 header. -Jeff > > Kurt >

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread Jeff Whitaker
> On Tue, Oct 13, 2009 at 03:54:22PM -0600, Jeff Whitaker wrote: > >> qu...@gmx.at wrote: >> >>> Greetings. >>> >>> What i want to do is something like: >>> >>> ipython ... >>> >>> >>> >>>

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Jeff Whitaker
KURT PETERS wrote: > OK, that got me a hair further :-) With your suggestion I got past > that speed bump by: > sudo apt-get install tk8.5-dev tcl8.5-dev > > Now the error is a little more sinister. I did a tiny bit of research > and some posts says the error could be due to no installation of

Re: [Matplotlib-users] Malaren lake by Matplotlib Basemap

2009-10-25 Thread Jeff Whitaker
kkondo wrote: > Hello > > I want to get the shoreline of Malaren lake as > http://en.wikipedia.org/wiki/File:La3-demis-malaren.png. But I find > that the following Matplotlib-Basemap program does not draw its > shoreline but its islands. Is it the flaw of GSHHS? > > > from mpl_toolkits.basemap i

Re: [Matplotlib-users] Malaren lake by Matplotlib Basemap

2009-10-26 Thread Jeff Whitaker
toolkits.basemap > >>> mpl_toolkits.basemap.__version__ > '0.99.4' > > P.S. "resolution='f'" works fine for the British Isles: > m = Basemap(llcrnrlon=-10.5,llcrnrlat=49.5,urcrnrlon=3.5,urcrnrlat=59.5, > resolution='f',projection=&#x

Re: [Matplotlib-users] Malaren lake by Matplotlib Basemap

2009-10-26 Thread Jeff Whitaker
Jeff Whitaker wrote: > kkondo wrote: > >> Hello >> >> I want to get the shoreline of Malaren lake as >> http://en.wikipedia.org/wiki/File:La3-demis-malaren.png. But I find >> that the following Matplotlib-Basemap program does not draw its >> shorelin

Re: [Matplotlib-users] drawmapscale() and 'cyl' projection [SEC=UNCLASSIFIED]

2009-10-29 Thread Jeff Whitaker
ross.wil...@ga.gov.au wrote: > Hi all, > > Sorry if this has been discussed before, but I can't find any previous > threads on this. > > I'm trying to draw a scale on an equidistant cylindrical projection, and I'm > seeing a ValueError exception with the message: > Cannot draw map scale for p

Re: [Matplotlib-users] drawmapscale() and 'cyl' projection [SEC=UNCLASSIFIED]

2009-10-29 Thread Jeff Whitaker
ross.wil...@ga.gov.au wrote: > -Original Message- > > >> Maybe I'm just extra ignorant today, but why *shouldn't* a scale be drawn on >> a 'cyl' projection >> >> > > > Ross: Because a cylindrical projection isn't really a projection at all > - it's just a lat/lon coordinate s

Re: [Matplotlib-users] basemap: Mask the ocean [SEC=UNCLASSIFIED]

2009-11-02 Thread Jeff Whitaker
Stephane Raynaud wrote: Ross, one way is to mask (or remove) ocean points using the _geoslib module provided with basemap. When you create a Basemap instance, you can retrieve all its polygons land (continents and islands) with "mymap.coastpolygons". Thay are stored as numpy arrays, and you c

Re: [Matplotlib-users] query abuot plotting polygons using a basemap projection

2009-11-03 Thread Jeff Whitaker
Gary Ruben wrote: > I'm plotting a coverage map of a sphere using the Mollweide plot in > basemap. The attachment is an example that is produced by sending an > array of polygons (one polygon per row described as four corners, one > per column) described using polar (theta) and azimuthal (phi) angl

Re: [Matplotlib-users] Basemap: Removing white space in savefig

2009-11-11 Thread Jeff Whitaker
On Tue, 10 Nov 2009 13:13 -0500, "George Bonev" wrote: Hello, I am plotting a fig in Basemap, but I don't need the extra while space on the sides of the figure when I use savfig(). I tried axes([0,0,1,1]) but that just gave me a blank white screen with some ticks on the sides. Is there

Re: [Matplotlib-users] bug in run_all.py

2009-11-23 Thread Jeff Whitaker
Dr. Phillip M. Feldman wrote: > The script run_all.py in the basemap examples does not work when Python has > been installed to "C:\Program Files\Python25". It appears that this problem > involves the space in the path. > Phillip: I don't have a windows machine to test on - so could you pleas

Re: [Matplotlib-users] `fig.subplots_adjust` does not behave as advertized

2009-11-23 Thread Jeff Whitaker
Dr. Phillip M. Feldman wrote: > The basemap demo `cubed_sphere.py` contains the following line of code: > >fig.subplots_adjust(bottom=0, left=0, right=1, top=0, wspace=0, hspace=0) > > >From the documentation, it would appear that `wspace=0` should remove all > horizontal space between the subp

Re: [Matplotlib-users] `fig.subplots_adjust` does not behave as advertized

2009-11-23 Thread Jeff Whitaker
Phillip M. Feldman wrote: > Jeff Whitaker wrote: >> Dr. Phillip M. Feldman wrote: >>> The basemap demo `cubed_sphere.py` contains the following line of code: >>> >>>fig.subplots_adjust(bottom=0, left=0, right=1, top=0, wspace=0, >>> hspace=0) >

Re: [Matplotlib-users] `fig.subplots_adjust` does not behave as advertized

2009-11-24 Thread Jeff Whitaker
Phillip M. Feldman wrote: > Jeff Whitaker wrote: >> Phillip M. Feldman wrote: >>> Jeff Whitaker wrote: >>>> Dr. Phillip M. Feldman wrote: >>>>> The basemap demo `cubed_sphere.py` contains the following line of >>>>> code: >>>>

Re: [Matplotlib-users] basemap099.4 and geos

2009-12-02 Thread Jeff Whitaker
xiaoni wrote: > Hello, all, > I have some problem with basemap and geos, and can not use Basemap。 > In the below I list the information about basemap and geos in my > computer. Hope someone would help me to figure out why it does not > work. Many thanks in adance ! > > 1) I type: > ---from m

Re: [Matplotlib-users] basemap099.4 and geos

2009-12-02 Thread Jeff Whitaker
st is that you clean out all old versions of basemap, _geoslib.so and libgeos, then rebuild again. The fact that there are so may versions floating around increases the chance that you have a version mismatch somewhere. Also check the build output and make sure there were no errors building _geos

Re: [Matplotlib-users] basemap099.4 and geos

2009-12-02 Thread Jeff Whitaker
way to do so ? I am > afraid that I may damage the system if I simplely apply "rm". Do you > have some suggestion about the steps of deleting ? > > Many thanks !! > > xiaoni > > > > *From:

Re: [Matplotlib-users] basemap099.4 and geos

2009-12-02 Thread Jeff Whitaker
ed to install a libgeos-dev package or somesuch. -Jeff > > Many thanks again ! > > xiaoni > > ---- > *From:* Jeff Whitaker > *To:* xiaoni > *Cc:* Matplotlib Users > *Sent:* Wed, December 2, 2009

Re: [Matplotlib-users] bluemarble is too dark

2009-12-25 Thread Jeff Whitaker
Phillip M. Feldman wrote: > Hello Jose- > > I searched the Python installation on my computer, but have not been > able to find the bluemarble image. > > I also followed the link that you provided, but didn't find any images > that cover the entire surface of the Earth. > > Python Developers- > >

Re: [Matplotlib-users] Can not get animated matplotlib example to work

2009-12-29 Thread Jeff Whitaker
TheLonelyStar wrote: > Hi, > > I am trying to get the exaple from here: > http://matplotlib.sourceforge.net/examples/animation/animate_decay_tk_blit.html > > I copied it into a file and tried to execute it. > I get: > > File "test.py", line 56, in > manager.window.after(100, run) > AttributeEr

Re: [Matplotlib-users] Simple text style question

2010-01-11 Thread Jeff Whitaker
Gökhan Sever wrote: > Hello, > > Is there a way to color words differently in a label or title, for > example: > > ylabel("measurement 1 (in red color)" , "measurement 2 (in blue > color)") to match with the plotted line colors? > > Thanks. > > -- > Gökhan Gökhan: ylabel('measurement 1',color='

Re: [Matplotlib-users] Simple text style question

2010-01-11 Thread Jeff Whitaker
Gökhan Sever wrote: > > > On Mon, Jan 11, 2010 at 6:51 AM, Jeff Whitaker <mailto:jsw...@fastmail.fm>> wrote: > > Gökhan Sever wrote: > > Hello, > > Is there a way to color words differently in a label or title, > for example: &g

Re: [Matplotlib-users] question re: map projection conversion and NetCDF files

2010-01-19 Thread Jeff Whitaker
Michael Mason wrote: > Hello, > > I have a set of NetCDF files that are in Lambert Conformal projection, > and I want to convert them to rectilinear, lat/lon projection. I'm > able to do this and plot the data and print the data out to a png > file. However, I want to get access to the underlying

Re: [Matplotlib-users] strange error when attempting to generate a map using 'geos' projection

2010-01-24 Thread Jeff Whitaker
Dr. Phillip M. Feldman wrote: > I’ve been experimenting with basemap, and have been able to make maps using > the orthographic and polyconic projections. When I try to generate a map > using the geostationary projection, I get the error message shown below. I > haven’t been able to make head or t

Re: [Matplotlib-users] strange error when attempting to generate a map using 'geos' projection

2010-01-24 Thread Jeff Whitaker
Dr. Phillip M. Feldman wrote: > Jeff Whitaker wrote: > >> >> Philip: That's an error from the proj4 c library saying that it didn't >> like one of the parameters you used to define the projection. Since you >> didn't include the parameters you u

Re: [Matplotlib-users] two issues with labels on maps

2010-01-25 Thread Jeff Whitaker
Dr. Phillip M. Feldman wrote: > The attached program generates a map and then saves it to a file. I have two > problems with the result: > > (1) Note that the screenshot shows a title above the map, while the .png > file that was saved by the program does not. > Philip: mapdemo.jpeg (which was

Re: [Matplotlib-users] two issues with labels on maps

2010-01-25 Thread Jeff Whitaker
Phillip M. Feldman wrote: > Jeff Whitaker wrote: >> Dr. Phillip M. Feldman wrote: >>> The attached program generates a map and then saves it to a file. I >>> have two >>> problems with the result: >>> >>> (1) Note that the screenshot shows a

Re: [Matplotlib-users] How to close a plot?

2010-02-07 Thread Jeff Whitaker
zxc wrote: > Hi there! > I need to know how to close a figure/chart in matplot. > > Does anyone know how it works and could you please explain on the > example below? > The problem is: close(1) doesn't close the figure 1 and when the 2nd > figure will be plot the program hangs. > I tried with dr

Re: [Matplotlib-users] 16bit tiff support?

2010-02-15 Thread Jeff Whitaker
Philipp Lies wrote: > On 02/12/2010 07:49 PM, Eric Firing wrote: > >> Philipp Lies wrote: >> >>> Hi, >>> >>> is there a backend that supports 16bit tiff images? >>> The macosx backend supports tiff. -Jeff >> Can you just use png, and use the netpbm utilities or ImageMagick >> conve

Re: [Matplotlib-users] Trouble gridding irregularly spaced data

2010-02-16 Thread Jeff Whitaker
T J wrote: > Hi, > > I'm trying to grid irregularly spaced data, such that the convex hull > of the data is not rectangular. Specifically, all my data lies in an > equilateral triangle inside the unit circle. I found: > > http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_d

Re: [Matplotlib-users] contours not contained to map and simular issues

2010-02-25 Thread Jeff Whitaker
ta2 grids will be approximately equally spaced on the surface of > the earth, regardless on lat_0 and lon_0. Therefore, you should be able > to just ensemble average all the data2 grids and preserve the relative > shapes and sizes of the features (this is helped by the fact that the > projectio

Re: [Matplotlib-users] imshow size limitations?

2010-03-01 Thread Jeff Whitaker
David Goldsmith wrote: > --- On Sun, 2/28/10, David Goldsmith wrote: > > >> Question 2) is there some way I can add >> >>> pieces of the >>> > array incrementally to > >> the image into their proper place, >> >> i.e., >> >

Re: [Matplotlib-users] Producing a KML-friendly (Google Earth) image

2010-03-03 Thread Jeff Whitaker
Bruce Ford wrote: > All, > > It took a fair bit of trial and error to coax a KML-friendly image out > of matplotlib and to understand what was and was not necessary. Below > is a demo script demonstrating how to accomplish a KML-friendly image > with and without a basemap. I hope this will help s

Re: [Matplotlib-users] colorbar on LEFT side of figure ?

2010-03-04 Thread Jeff Whitaker
Jim Vickroy wrote: > Hi, > > I have been unable to place a colorbar on the LEFT side of a figure. > For example, in the Gaussian noise with vertical colorbar > > > demo, how can the colorbar be positi

Re: [Matplotlib-users] shiftgrid 'cyclic point not included' error

2010-03-08 Thread Jeff Whitaker
antonv wrote: > Hi all, > > I am getting a 'cyclic point not included' error using shiftgrid on a grib > file from NOAA. I've checked and it seems that the file has the lons from 0 > to 359.5 every .5 degree but I get that error whenever I try to run this. > > What I need to achieve is to shift th

Re: [Matplotlib-users] shiftgrid 'cyclic point not included' error

2010-03-08 Thread Jeff Whitaker
? > > Here is an image showing that (above england): > http://old.nabble.com/file/p27824785/Global-HTSGW_DIRPW-0.png > > Thanks, > Anton > Anton: Looks like the values at the Greenwich meridian got messed up somehow. Can you post your script somewhere so I ca

Re: [Matplotlib-users] shiftgrid 'cyclic point not included' error

2010-03-08 Thread Jeff Whitaker
id(180.0, z, lons1, start=False) zq, lonsnew = shiftgrid(180.0, zq, lons1, start=False) lons, lonsnew = shiftgrid(180.0, lons, lons1, start=False) lats, lonsnew = shiftgrid(180.0, lats, lons1, start=False) and it works fine. -Jeff > > > > Jeff Whitaker wrote: &

Re: [Matplotlib-users] shiftgrid 'cyclic point not included' error

2010-03-10 Thread Jeff Whitaker
shiftgrid(180.0, zq, lons_a[i], start=False, > cyclic=360.0) > > in your script to > > lons1 = lons[0,:] > z, lonsnew = shiftgrid(180.0, z, lons1, start=False) > zq, lonsnew = shiftgrid(180.0, zq, lons1, start=False) > lons, lonsnew = shiftgrid(180

Re: [Matplotlib-users] How do you add contrasting text to color image

2010-03-16 Thread Jeff Whitaker
On 3/16/10 10:10 AM, PaterMaximus wrote: I have I have an image with both light and dark regions. I want to write text on it in a color that contrasts with the underlying image color. Right now if I make the text black, it is not very legible if the underling color is dark. Similarly, if I make

Re: [Matplotlib-users] matplotlib to draw streamlines?

2010-03-23 Thread Jeff Whitaker
On 3/23/10 5:33 PM, Reckoner wrote: > Is it possible to draw a streamlines plot as shown in the following: > > http://www.pyngl.ucar.edu/Examples/Images/ngl04p.0.png > > using matplotlib or basemap? > > Thanks in advance! > > > Sorry, no. -Jeff ---

Re: [Matplotlib-users] manual placement of a colorbar

2010-04-01 Thread Jeff Whitaker
On 4/1/10 1:24 PM, Mathew Yeates wrote: > Hi > > I have a Basemap and I want to manually add a colorbar to the side. As > you can see in the attached image, the colorbar is not correctly > positioned. > > Here is a snippet of code > > ax=fig.add_axes([0.1,0.1,0.8,.8]) > m = Basemap(resolution='c'

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

2010-04-02 Thread Jeff Whitaker
On 4/2/10 4:27 AM, Will Hewson wrote: Hi forum/ mailing list, When I plot in the orthographic projection I'm getting the large artefact shown below extending away from the north east of the globe. I'm not finding the same problem when plotting in a full globe projection so I'm presuming the pro

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

2010-04-02 Thread Jeff Whitaker
On 4/2/10 4:27 AM, Will Hewson wrote: Hi forum/ mailing list, When I plot in the orthographic projection I'm getting the large artefact shown below extending away from the north east of the globe. I'm not finding the same problem when plotting in a full globe projection so I'm presuming the pro

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

2010-04-02 Thread Jeff Whitaker
> Will > Will: I forgot to mention that contourf will work on your data without having to interpolate to projection coordinates. -Jeff > > > Jeff Whitaker wrote: > >> On 4/2/10 4:27 AM, Will Hewson wrote: >> >>> Hi forum/ mailing list, When I

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

2010-04-04 Thread Jeff Whitaker
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 like it should solve the problems I'm experiencing. However, an > error's being thrown up by the transform scalar function, as my lons and > lats won't

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

2010-04-05 Thread Jeff Whitaker
lat/lon grid, it should work in transform_scalar. However, I don't see how to read the data in your test.plt file into a regular 360x720 grid. It seems to only contain the points in the swath with nonzero values. -Jeff > > > Jeff Whitaker wrote: > >> On 4/4/10 11:

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

2010-04-05 Thread Jeff Whitaker
ome slight modifications to your original script and it works fine with the ortho projection using either contourf on the original lat/lon grid or pcolormesh on the interpolated map projection grid. -Jeff Jeff Whitaker wrote: On 4/5/10 4:16 AM, Will Hewson wrote: Hey Jeff, It&#

Re: [Matplotlib-users] display a filled lat/lon basemap rectangle.

2010-04-07 Thread Jeff Whitaker
Yeates, Mathew C (388D) wrote: > > > > Hi > > What is the simplest way to fill in a 1 degree by 1 degree rectangle > on a basemap projection? > > > > Mathew > Mathew: Try this (for a 10x10 rectangle, but you get the idea) from matplotlib.patches import Polygon import matplotlib.pyplot as p

Re: [Matplotlib-users] display a filled lat/lon basemap rectangle.

2010-04-07 Thread Jeff Whitaker
polygon - that's what I gave you. What exactly do you want? A rectangle in map projection coordinates? A rectangle in lat/lon coordinates? A circle? -Jeff > > > On Wed, Apr 7, 2010 at 1:54 PM, Jeff Whitaker <mailto:jsw...@fastmail.fm>> wrot

Re: [Matplotlib-users] display a filled lat/lon basemap rectangle.

2010-04-07 Thread Jeff Whitaker
tion. -Jeff > > > > > On Wed, Apr 7, 2010 at 6:24 PM, Jeff Whitaker <mailto:jsw...@fastmail.fm>> wrote: > > Mathew Yeates wrote: > > I think this will only work with some projections but not all. > I looked at the code for tis

Re: [Matplotlib-users] coordinate transformation: Basemap vs. Proj

2010-05-04 Thread Jeff Whitaker
On 5/4/10 2:03 PM, Timothy W. Hilton wrote: > Hello matplotlib users, > > I am having trouble understanding the coordinate transformations in > Basemap and pyproj. I have gridded MODIS vegetation data, with upper > left corner and lower right corner given in projection coordinates > (meters). I w

Re: [Matplotlib-users] coordinate transformation: Basemap vs. Proj

2010-05-04 Thread Jeff Whitaker
0015077.37119, 10007538.6856) > >>>> m(0.0,0.0,inverse=True) >>>> > (-176.20919036912957, -89.9808395) > > Sorry if I am being obtuse. Many thanks for your help. > > -Tim > > On Tue, May 2010, 04 at 04:01:21PM -0600, Jeff Whitaker

Re: [Matplotlib-users] Basemap continent colors

2010-05-10 Thread Jeff Whitaker
On 5/10/10 2:21 PM, Michael Hearne wrote: > I have found a (possible) bug in Basemap - when using > basemap.fillcontinents(), I see the chosen continent color only when the map > I create includes some ocean. If I am in the interior of a continent (I've > tested with North America and Asia), t

  1   2   3   4   5   6   7   >