Re: [Matplotlib-users] Twiny and affine transform for xlim

2010-06-30 Thread magnus_p
I finally solved it my self, after half a day of headbanging. This did the trick for me, it is really good since it uses the values of the lower x axis, so you do not have to go in fiddle with ticklabels etc, it also changes values when you pan/zoom etc. fig = pl.figure(1,figsize=(10.5,8)) fig.cl

Re: [Matplotlib-users] extract country borders data & convert to shapefile

2010-06-30 Thread Joe Kington
Ah, sorry I misunderstood. You can get them by using GMT's gshhs tool (or just using pscoast with the right options) to dump out the political borders in GMT format and then convert them to a shapefile using ogr2org (or whichever tool you find easiest... Personally I use the python wrappers around

Re: [Matplotlib-users] extract country borders data & convert to shapefile

2010-06-30 Thread P. R.M.
hi, thanks for the response. I already have & know how to use the GSHHS coastline data; what I need is political boundaries (country borders) data that will coincide with the GSHHS coastline data. In other words, I can't simply use any political boundaries shapefile, since the coastlines will

Re: [Matplotlib-users] extract country borders data & convert to shapefile

2010-06-30 Thread Joe Kington
If you just need the GSHHS data in shapefile format, it's available on the NOAA GSHHS website . If you prefer a direct link [96MB zip file]: http://www.ngdc.noaa.gov/mgg/shorelines/data/gshhs/version2.0/shapefiles/gshhs_shp_2.0.zip Hope that hel

[Matplotlib-users] matplotlib Mac binary that works with python.org python and older MacOS X?

2010-06-30 Thread Russell E. Owen
I'm trying to find a matplotlib 0.99.3 binary installer that works with the standard python.org Python (preferably 2.6) and hence works with Mac OS X 10.4 or greater. (I distribute an application that needs to run on a wide range of versions of Mac OS X). The official binary I found refuses to

[Matplotlib-users] extract country borders data & convert to shapefile

2010-06-30 Thread P. R.M.
I have a non-matplotlib related project that requires usage of GSHHS dataset shapefiles. The regular GSHHS dataset doesnt appear to include political boundaries, however the GSHHS dataset used by matplotlib/basemap does include country/border data. I'd like to extract matplotlib/basemap GSHHS

[Matplotlib-users] how to remove a part of the legend ?

2010-06-30 Thread Philippe Crave
Hello, I have a subplot with 4 lines. I display the legend. I can remove a line easily with something like del(self.ax.lines[n]). But how can I remove the line in the legend ? I found that I can remove all the lines, add news ones, but all the lines (new and deleted) remain in the legend. thanks

[Matplotlib-users] Twiny and affine transform for xlim

2010-06-30 Thread magnus_p
I am trying to plot a spectrum, with lower x axis = velocity, on the upper = frequency The relationship between them (doppler formula) is f = (1-v/c)*f_0 where f is the resulting frequency, v the velocity, c the speed of light, and f_0 the frequency at v=0, ie. the v_lsr. I have tried to solv

[Matplotlib-users] No color scaling when using plot_surface. Please help

2010-06-30 Thread Jeremy Conlin
I am trying to plot some data over a mesh using the plot_surface method. However when I plot my data, everything is the same color when I expected to get a nice rainbow of colors as in the example: http://matplotlib.sourceforge.net/examples/mplot3d/surface3d_demo.html I have attached a simple sc

Re: [Matplotlib-users] matplotlib in interactive mode from a script

2010-06-30 Thread Matthias Michler
On Tuesday, June 29, 2010 03:32:00 pm ninjasmith wrote: > hi there, > > I've got a bit stuck with running matplotlib in interactive mode. maybe > what I want to do can't be done easily. > > want I want is a simple python script which I can run with a file argument. > this will then create some p