Re: [Matplotlib-users] depth longitude plot

2013-03-05 Thread Sudheer Joseph
Thank you, > >1) There is a wide gap between label and the contours ie  it appears like >--     2.4      . is there a way to reduce this gap? Try inline=False for the clabel call, but that might over-do it.   I tried this but it totally removes the space, the inline_space=n do not app

Re: [Matplotlib-users] depth longitude plot

2013-03-05 Thread Benjamin Root
On Mon, Mar 4, 2013 at 8:26 PM, Sudheer Joseph wrote: > Thanks to all Matplotlib experts for extending help, > With the suggestions I could make the script work and I am close to the > target I had in mind, > Below script produces as depth longitude contou-filled plot. > However I have below conc

Re: [Matplotlib-users] depth longitude plot

2013-03-04 Thread Sudheer Joseph
0-9440832534(Mobile) E-mail:sjo.in...@gmail.com;sudheer.jos...@yahoo.com Web- http://oppamthadathil.tripod.com *** From: Jody Klymak To: Sudheer Joseph Cc: "Matplotlib-users@lists.sourceforge.net" Sent: Tuesday, 5 March 2013 2:10 AM Subject: Re: [Matplotlib-users] depth long

Re: [Matplotlib-users] depth longitude plot

2013-03-04 Thread Jody Klymak
ceforge.net" > > Sent: Monday, 4 March 2013 8:19 PM > Subject: Re: [Matplotlib-users] depth longitude plot > > Thank you, >I just posted this question in numpy lists thinking > that it is possible after regriding the data

Re: [Matplotlib-users] depth longitude plot

2013-03-04 Thread Sudheer Joseph
13 7:53 PM Subject: Re: [Matplotlib-users] depth longitude plot On Sat, Mar 2, 2013 at 6:35 AM, Sudheer Joseph wrote: Hi Phil, > > >Though iris looked to be promising it needed many other libraries, so I chose >the below suggestion. But is there a way to overlay contours on this ? al

Re: [Matplotlib-users] depth longitude plot

2013-03-04 Thread Benjamin Root
On Sat, Mar 2, 2013 at 6:35 AM, Sudheer Joseph wrote: > Hi Phil, > > Though iris looked to be promising it needed many other libraries, so I > chose the below suggestion. But is there a way to overlay contours on this > ? also is it possible to specify the levels? > In [23]: plt.pcolormesh?? did n

Re: [Matplotlib-users] depth longitude plot

2013-03-02 Thread Sudheer Joseph
*** From: Phil Elson To: "Matplotlib-users@lists.sourceforge.net" Sent: Saturday, 2 March 2013 3:07 PM Subject: Re: [Matplotlib-users] depth longitude plot Perhaps something like: from matplotlib import pyplot as plt from netCDF4 import Dataset impor

Re: [Matplotlib-users] depth longitude plot

2013-03-02 Thread Phil Elson
Incidentally, if you wanted to do this a little more expressively than indexing, you could look into using iris ( http://scitools.org.uk/iris/docs/latest/index.html). It doesn't currently support DAP, but if you had the NetCDF file (from * http://www.marine.csiro.au/dods-data/climatology-netcdf/lev

Re: [Matplotlib-users] depth longitude plot

2013-03-02 Thread Phil Elson
Perhaps something like: from matplotlib import pyplot as plt from netCDF4 import Dataset import numpy as np url=*' http://www.marine.csiro.au/dods/nph-dods/dods-data/climatology-netcdf/levitus_monthly_temp_98.nc '* ds = Dataset(url) temp = ds.variables[*'TEMP'*] lats = ds.variables[*'**

[Matplotlib-users] depth longitude plot

2013-03-01 Thread Sudheer Joseph
Dear Users,                              I am trying to make  vertical section plot along  equator of Indian ocean from 45E to 100E and latitude 0. from levitus climatology using below code. What is the best and simple way to  achieve this? np.meshgrid allows only 2 variables so I am not able to ma