Hi Sudheer,

You want contourf.

http://matplotlib.org/examples/pylab_examples/contour_image.html

Cheers,  Jody

On Mar 4, 2013, at  9:04 AM, Sudheer Joseph <sudheer.jos...@yahoo.com> wrote:

> Hi Benamin,
> I was looking for a plot similar to the attached one named ferret.gif. But 
> from matplot lib I get flat fill and contours which are not aligned to the 
> levels ( named figure_1.png , it looks like matplotlib has just flat surfaces 
> as it used pcolor.
> 
> with best regards,
> Sudheer
> 
> From: Sudheer Joseph <sudheer.jos...@yahoo.com>
> To: Benjamin Root <ben.r...@ou.edu> 
> Cc: "Matplotlib-users@lists.sourceforge.net" 
> <matplotlib-users@lists.sourceforge.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 to new axes. 
> Thanks for the help.
> with best regards,
> Sudheer
>  
> ***************************************************************
> Sudheer Joseph 
> Indian National Centre for Ocean Information Services
> Ministry of Earth Sciences, Govt. of India
> POST BOX NO: 21, IDA Jeedeemetla P.O.
> Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
> Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
> Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
> E-mail:sjo.in...@gmail.com;sudheer.jos...@yahoo.com
> Web- http://oppamthadathil.tripod.com
> ***************************************************************
> From: Benjamin Root <ben.r...@ou.edu>
> To: Sudheer Joseph <sudheer.jos...@yahoo.com> 
> Cc: Phil Elson <pelson....@gmail.com>; 
> "Matplotlib-users@lists.sourceforge.net" 
> <matplotlib-users@lists.sourceforge.net> 
> Sent: Monday, 4 March 2013 7:53 PM
> Subject: Re: [Matplotlib-users] depth longitude plot
> 
> 
> 
> On Sat, Mar 2, 2013 at 6:35 AM, Sudheer Joseph <sudheer.jos...@yahoo.com> 
> 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 not give much help
> with best regards,
> Sudheer
> 
> You can overlay contours on the pcolormesh image by simply using the 
> plt.contour() function after the pcolormesh() call.  It allows you to control 
> which levels to contour and you can specify the attributes of those contours 
> like the color or thickness.  Note that unlike Matlab, you don't have to call 
> "hold on" between plots.  By default, matplotlib will hold.
> 
> I hope that helps!
> Ben Root
> 
> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
> <ferret.gif><figure_1.png>------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Jody Klymak    
http://web.uvic.ca/~jklymak/




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to