Re: [Matplotlib-users] color missing value with contourf

2013-03-05 Thread Mahe
Benjamin Root writes: > > On Tue, Feb 1, 2011 at 11:09 AM, Francesco Benincasa wrote: > > Hi all, > I'm using pygrads for plotting maps from netcdf files. > I use the contourf method, but I'm not able to fill the region where there are > no value (there is the missing value -999) with a color

Re: [Matplotlib-users] overlapping ticks in x axis

2013-03-05 Thread Sterling Smith
Vineeth, I think that you are looking for from matplotlib.ticker import MaxNLocator -Sterling On Mar 3, 2013, at 5:38PM, vineeth wrote: > Hello, > > I have attached the histogram that I generated. When specifying large numbers > like 1000 or more, the xticks tend to overlap and it gives a clu

Re: [Matplotlib-users] Giving Peak number

2013-03-05 Thread Sterling Smith
Matplotlib User (I'm not sure how to address you), I think that you are looking for either text() or annotate(). -Sterling On Mar 5, 2013, at 4:12AM, nittopuran natya wrote: > Hi, > > I have this script which gives output the image attached here. What I want is > to give all the peak a numb

Re: [Matplotlib-users] overlapping ticks in x axis

2013-03-05 Thread Vineeth Rakesh
Sterling, Thank you, ya I got it working using MaxNLocator On Tue, Mar 5, 2013 at 12:49 PM, Sterling Smith wrote: > Vineeth, > > I think that you are looking for > from matplotlib.ticker import MaxNLocator > > -Sterling > > On Mar 3, 2013, at 5:38PM, vineeth wrote: > > > Hello, > > > > I have a

[Matplotlib-users] Basemap datum assumption

2013-03-05 Thread Mathew Topper
Hello all, I have a quick question regarding the datum assumption when entering lon/lat data into a Basemap object. My understanding is that Basemap will use the datum specified upon creation, the default being a sphere of radius 6,370,997 meters and assume that the lon, lat entered in a cal

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] View datetime corresponding to x coordinate of cursor

2013-03-05 Thread Phil Elson
Sounds like a nice feature if it doesn't already exist. At first glance, I'd say this was a good candidate for the "low-hanging fruit" label ( https://github.com/matplotlib/matplotlib/issues?labels=low+hanging+fruit&page=1&state=open) for which we have tickets which have a low matplotlib contributi