Re: [Matplotlib-users] Hovemuller Diagram

2013-07-13 Thread Sudheer Joseph


Thank Daswson  & Sterling,
   Got it, you meant the data should not have date and 
longitude against each grid point instead should have only 2 vectors rather 
than grid.
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: Andrew Dawson 
>To: Sudheer Joseph  
>Cc: "Matplotlib-users@lists.sourceforge.net" 
>; Phil Elson  
>Sent: Saturday, 13 July 2013 1:04 PM
>Subject: Re: [Matplotlib-users] Hovemuller Diagram
> 
>
>
>I meant the coordinates, so one representing latitude or longitude and one 
>representing time (filled with datetime objects), should be 1d. This only 
>applies if your coordinate actually contains datetime objects, if not then 
>coordinates can be 2d as the documentation says.
>On 13 Jul 2013 02:22, "Sudheer Joseph"  wrote:
>
>Hi,
>>
>>I did not understand 1d mentioned by you? for a diagram like this 2D is must 
>>as it need longitude /latitude and also time
>>with best regards,
>>Sudheer
>>
>>From: Andrew Dawson 
>>
>>To: Phil Elson 
>>>Cc: Sudheer Joseph ; 
>>>"matplotlib-users@lists.sourceforge.net" 
>>>
>>>Sent: Friday, 12 July 2013 1:28 PM
>>>Subject: Re: [Matplotlib-users] Hovemuller Diagram
>>>
>>>
>>>
>>>As long as you use contour or contourf and your coordinates are 1d you 
>>>should be able to do this no problem, just like Phil said. However, there is 
>>>a bug that will prevent you from using pcolormesh or pcolor unfortunately.
>>>
>>>
>>>Andrew
>>>
>>>
>>>
>>>On 12 July 2013 08:51, Phil Elson  wrote:
>>>
>>>The balance of time to install vs time to re-implement a feature is only 
>>>something you can decide, but i suspect it is worth your while getting iris 
>>>installed (I would say that as an iris developer though). The installation 
>>>process is only going to get easier over time, for instance last week we 
>>>added a PPA so that with the necessary repos added you would be able to 
>>>"apt-get install python-iris" on an Ubuntu machine - for other installation 
>>>guides there is a repository of recipes ( 
>>>https://github.com/SciTools/installation-recipes ).
>>>>As for achieving this without iris, it is perfectly feasible. You just need 
>>>>to contourf your data with the longitude as your x coordinate and the date 
>>>>times as your y coordinate. From memory you might also need to tell 
>>>>matplotlib that the y coordinate is date/time (I think that is a mpl bug 
>>>>that ajdawson has recently addressed). Obviously, basemap is not needed as 
>>>>you are not drawing a longitude/latitude plot but a longitude/time or 
>>>>latitude/time one.
>>>>HTH,
>>>>Phil
>>>>
>>>>
>>>>
>>>>On 11 July 2013 19:06, Sudheer Joseph  wrote:
>>>>
>>>>Thank you Signell,
>>>>>   I was looking for better looking labels as well as 
>>>>>a solution with in matplotlib without needing to install additional 
>>>>>packages. I had some trouble with some libraries while trying to install 
>>>>>iris. I was wondering if it is possible with in matplotlib with out 
>>>>>additional installations using the features of basemap package.
>>>>>
>>>>>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)
>>>>>

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-13 Thread Sudheer Joseph
Hi,

Is there a way to make the below as a hovemuler diagram which I tired but could 
not succeed  

import pandas as pd
 
dates = pd.date_range('20130101',periods=30)
df=pd.DataFrame(np.random.randn(30,5),index=dates)
From: Andrew Dawson 

To: Sudheer Joseph  
>Cc: "Matplotlib-users@lists.sourceforge.net" 
>; Phil Elson  
>Sent: Saturday, 13 July 2013 1:04 PM
>Subject: Re: [Matplotlib-users] Hovemuller Diagram
> 
>
>
>I meant the coordinates, so one representing latitude or longitude and one 
>representing time (filled with datetime objects), should be 1d. This only 
>applies if your coordinate actually contains datetime objects, if not then 
>coordinates can be 2d as the documentation says.
>On 13 Jul 2013 02:22, "Sudheer Joseph"  wrote:
>
>Hi,
>>
>>I did not understand 1d mentioned by you? for a diagram like this 2D is must 
>>as it need longitude /latitude and also time
>>with best regards,
>>Sudheer
>>
>>From: Andrew Dawson 
>>
>>To: Phil Elson 
>>>Cc: Sudheer Joseph ; 
>>>"matplotlib-users@lists.sourceforge.net" 
>>>
>>>Sent: Friday, 12 July 2013 1:28 PM
>>>Subject: Re: [Matplotlib-users] Hovemuller Diagram
>>>
>>>
>>>
>>>As long as you use contour or contourf and your coordinates are 1d you 
>>>should be able to do this no problem, just like Phil said. However, there is 
>>>a bug that will prevent you from using pcolormesh or pcolor unfortunately.
>>>
>>>
>>>Andrew
>>>
>>>
>>>
>>>On 12 July 2013 08:51, Phil Elson  wrote:
>>>
>>>The balance of time to install vs time to re-implement a feature is only 
>>>something you can decide, but i suspect it is worth your while getting iris 
>>>installed (I would say that as an iris developer though). The installation 
>>>process is only going to get easier over time, for instance last week we 
>>>added a PPA so that with the necessary repos added you would be able to 
>>>"apt-get install python-iris" on an Ubuntu machine - for other installation 
>>>guides there is a repository of recipes ( 
>>>https://github.com/SciTools/installation-recipes ).
>>>>As for achieving this without iris, it is perfectly feasible. You just need 
>>>>to contourf your data with the longitude as your x coordinate and the date 
>>>>times as your y coordinate. From memory you might also need to tell 
>>>>matplotlib that the y coordinate is date/time (I think that is a mpl bug 
>>>>that ajdawson has recently addressed). Obviously, basemap is not needed as 
>>>>you are not drawing a longitude/latitude plot but a longitude/time or 
>>>>latitude/time one.
>>>>HTH,
>>>>Phil
>>>>
>>>>
>>>>
>>>>On 11 July 2013 19:06, Sudheer Joseph  wrote:
>>>>
>>>>Thank you Signell,
>>>>>   I was looking for better looking labels as well as 
>>>>>a solution with in matplotlib without needing to install additional 
>>>>>packages. I had some trouble with some libraries while trying to install 
>>>>>iris. I was wondering if it is possible with in matplotlib with out 
>>>>>additional installations using the features of basemap package.
>>>>>
>>>>>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
>>>>>***
>>>>>
>>>>>
>>>>>- Original Message -
>>>>>> From: "Signell, Richard" 
>>>>>> To: Sudheer Joseph 
>>>>>> Cc:
>>>>>> Sent: Friday, 12 July 2013 12:41 AM
>>>>>> Subject: Re: [Matplotlib-users] Hovemuller Diagram
>>>>&

Re: [Matplotlib-users] Graphing in an existing PyGTK window

2013-08-19 Thread Sudheer Joseph
Hi Paul,
    If you start python like below with qt console. You will get plots 
with out controls etc. You can right click on plots and save it as png. Else 
from command prompt as pdf as you wish.


ipython qtconsole  --colors=linux  --pylab=inline

 




>
> From: Paul D. DeRocco 
>To: Matplotlib list  
>Sent: Monday, 19 August 2013 1:17 PM
>Subject: [Matplotlib-users] Graphing in an existing PyGTK window
> 
>
>I've just tried Matplotlib for the first time, for plotting on the screen,
>and the examples all seem to pop up a new window with interactive tools,
>like Matlab does. That's very nice, but what I need is to create a static
>plot that appears in some sort of widget in an existing window created
>with PyGTK, without any of the controls. Is there a page that shows how
>this can be done? Is it even possible?
>
>-- 
>
>Ciao,               Paul D. DeRocco
>Paul                mailto:pdero...@ix.netcom.com 
>
>
>
>--
>Get 100% visibility into Java/.NET code with AppDynamics Lite!
>It's a free troubleshooting tool designed for production.
>Get down to code-level detail for bottlenecks, with <2% overhead. 
>Download for free and get started troubleshooting in minutes. 
>http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>___
>Matplotlib-users mailing list
>Matplotlib-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] modification to m.scatter

2014-12-15 Thread Sudheer Joseph
Dear Developers/users,
 I updated matplot lib to 1.4.2 and below example appears to be 
not working for m.scatter. May I know what change is implimented ?. m.scatter 
plots the river discharge in gridded format if the x,y=meshgrid(lon,lat) is 
used else it do not plot over map.

http://earthpy.org/earthpy-basemap-amazon.html
***
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
***

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] modification to m.scatter

2014-12-16 Thread Sudheer Joseph
Thank you,
  Ifact I was referring to the example given on the page. 
 http://earthpy.org/earthpy-basemap-amazon.html
Becasue it has reference to the data to be downloaed, I thought it is better to 
send the link rather than sending the code which need data.

With best regards,
Sudheer 

On Tue, 16/12/14, Benjamin Root  wrote:

 Subject: Re: [Matplotlib-users] modification to m.scatter
 To: "Sudheer Joseph" 
 Cc: "Matplotlib Users" 
 Date: Tuesday, 16 December, 2014, 2:48 PM
 
 Can you
 please include an SSCCE? http://sscce.org/ 
 
 On Tue, Dec 16, 2014 at
 12:43 AM, Sudheer Joseph 
 wrote:Dear Developers/users,
 
                  I updated matplot lib to 1.4.2 and
 below example appears to be not working for m.scatter. May I
 know what change is implimented ?. m.scatter plots the river
 discharge in gridded format if the x,y=meshgrid(lon,lat) is
 used else it do not plot over map.
 
 
 
 http://earthpy.org/earthpy-basemap-amazon.html
 
 ***********
 
 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
 
 ***
 
 
 
 --
 
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
 Server
 
 from Actuate! Instantly Supercharge Your Business Reports
 and Dashboards
 
 with Interactivity, Sharing, Native Excel Exports, App
 Integration & more
 
 Get technology previously reserved for billion-dollar
 corporations, FREE
 
 http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
 
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] modification to m.scatter

2014-12-17 Thread Sudheer Joseph
Sorry,
 in below steps, the converting lat lon to map projection coordiate is 
not working unless I do meshgrid. If I do meshgrid then the scatter 3rd axis 
get plotted at each grid which is not expected 

the figure after In [16]: do not result if we follow the steps

m = Basemap(projection='robin',lon_0=0,resolution='c')
x, y = m(df_data['lonm'][0:50], df_data['latm'][0:50])



On Wed, 17/12/14, Benjamin Root  wrote:

 Subject: Re: [Matplotlib-users] modification to m.scatter
 To: "Sudheer Joseph" 
 Cc: "Matplotlib Users" 
 Date: Wednesday, 17 December, 2014, 1:29 AM
 
 There are
 lots of code examples on that page. You have yet to provide
 a sscce. Nor have you posted what happens when you run your
 sscce. At the very leat, post the traceback or the bad image
 that differs from what you expect.
 Ben Root
 On Dec 16, 2014 7:59 PM,
 "Sudheer Joseph" 
 wrote:
 Thank
 you,
 
                   Ifact I was referring to the
 example given on the page.
 
  http://earthpy.org/earthpy-basemap-amazon.html
 
 Becasue it has reference to the data to be downloaed, I
 thought it is better to send the link rather than sending
 the code which need data.
 
 
 
 With best regards,
 
 Sudheer
 
 
 
 On Tue, 16/12/14, Benjamin Root 
 wrote:
 
 
 
  Subject: Re: [Matplotlib-users] modification to
 m.scatter
 
  To: "Sudheer Joseph" 
 
  Cc: "Matplotlib Users" 
 
  Date: Tuesday, 16 December, 2014, 2:48 PM
 
 
 
  Can you
 
  please include an SSCCE? http://sscce.org/
 
 
 
  On Tue, Dec 16, 2014 at
 
  12:43 AM, Sudheer Joseph 
 
  wrote:Dear Developers/users,
 
 
 
                   I updated matplot lib to 1.4.2
 and
 
  below example appears to be not working for m.scatter. May
 I
 
  know what change is implimented ?. m.scatter plots the
 river
 
  discharge in gridded format if the x,y=meshgrid(lon,lat)
 is
 
  used else it do not plot over map.
 
 
 
 
 
 
 
  http://earthpy.org/earthpy-basemap-amazon.html
 
 
 
  ***
 
 
 
  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
 
 
 
  ***
 
 
 
 
 
 
 
  --
 
 
 
  Download BIRT iHub F-Type - The Free Enterprise-Grade
 BIRT
 
  Server
 
 
 
  from Actuate! Instantly Supercharge Your Business
 Reports
 
  and Dashboards
 
 
 
  with Interactivity, Sharing, Native Excel Exports, App
 
  Integration & more
 
 
 
  Get technology previously reserved for billion-dollar
 
  corporations, FREE
 
 
 
  http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
 
 
 
  ___
 
 
 
  Matplotlib-users mailing list
 
 
 
  Matplotlib-users@lists.sourceforge.net
 
 
 
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
 
 

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Corr plot in subplot

2015-03-13 Thread Sudheer Joseph
Dear Matplotlib exprets,
I am trying to place the corrplot in subplot environment. But not able to 
figure out how to do it properly. Can any one advice please?


from biokit.viz import corrplot
df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65) for k in letters)))
df = df.corr()
c = corrplot.Corrplot(df)

I wanted to make the corrplot in below 4 boxes which can come out as a single 
figure. The above data is a test data actually I wanted use seasonal data for 
this purpose.

fig = plt.figure()
fig.subplots_adjust(left=0.2, wspace=0.6)
ax1 = fig.add_subplot(221)
ax2 = fig.add_subplot(222)
ax3 = fig.add_subplot(223)
ax4 = fig.add_subplot(224)


***
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
***

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Corr plot in subplot

2015-03-14 Thread Sudheer Joseph
Thank you Paul,
  I could not follow fully what you meant by that in 
reply. but below is the info available with corrplot.
Kindly provide some help.
With best regards,
Sudheer
 Here are some examples provided that the data is created 
and pass to c::
 |  
 |  c = corrplot.Corrplor(dataframe)
 |  c.plot(cmap=('Orange', 'white', 'green'))
 |  c.plot(method='circle')
 |  c.plot(colorbar=False, shrink=.8, upper='circle'  )
 |  


On Fri, 13/3/15, Paul Hobson  wrote:

 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Sudheer Joseph" 
 Cc: "Matplotlib Users" 
 Date: Friday, 13 March, 2015, 6:04 PM
 
 What's
 the function signature of corrplot.CorrPlot? Hopefully you
 can pass an Axes object to it
 argument.-p
 On Fri, Mar 13, 2015 at
 9:02 AM, Sudheer Joseph 
 wrote:
 Dear
 Matplotlib exprets,
 
 I am trying to place the corrplot in subplot environment.
 But not able to figure out how to do it properly. Can any
 one advice please?
 
 
 
 
 
 from biokit.viz import corrplot
 
 df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65)
 for k in letters)))
 
 df = df.corr()
 
 c = corrplot.Corrplot(df)
 
 
 
 I wanted to make the corrplot in below 4 boxes which can
 come out as a single figure. The above data is a test data
 actually I wanted use seasonal data for this purpose.
 
 
 
 fig = plt.figure()
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 ax1 = fig.add_subplot(221)
 
 ax2 = fig.add_subplot(222)
 
 ax3 = fig.add_subplot(223)
 
 ax4 = fig.add_subplot(224)
 
 
 
 
 
 ***
 
 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
 
 ***
 
 
 
 --
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Corr plot in subplot

2015-03-14 Thread Sudheer Joseph
Thank you Adam,
  I did not see your response earlier. It worls.
Thanks
Sudheer
 

***


On Fri, 13/3/15, Adam Hughes  wrote:

 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Paul Hobson" 
 Cc: "Sudheer Joseph" , "Matplotlib Users" 

 Date: Friday, 13 March, 2015, 7:06 PM
 
 All the
 pandas plots that I've used take an axes keyword so
 try:
 
 c =
 corrplot.Corrplot(df, ax=ax1)
 
 or
 c =
 corrplot.Corrplot(df, axes=ax1)
 
 Do either of those
 work?
 On Fri,
 Mar 13, 2015 at 2:04 PM, Paul Hobson 
 wrote:
 What's the function signature of
 corrplot.CorrPlot? Hopefully you can pass an Axes object to
 it argument.-p
 On Fri, Mar 13, 2015 at
 9:02 AM, Sudheer Joseph 
 wrote:
 Dear
 Matplotlib exprets,
 
 I am trying to place the corrplot in subplot environment.
 But not able to figure out how to do it properly. Can any
 one advice please?
 
 
 
 
 
 from biokit.viz import corrplot
 
 df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65)
 for k in letters)))
 
 df = df.corr()
 
 c = corrplot.Corrplot(df)
 
 
 
 I wanted to make the corrplot in below 4 boxes which can
 come out as a single figure. The above data is a test data
 actually I wanted use seasonal data for this purpose.
 
 
 
 fig = plt.figure()
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 ax1 = fig.add_subplot(221)
 
 ax2 = fig.add_subplot(222)
 
 ax3 = fig.add_subplot(223)
 
 ax4 = fig.add_subplot(224)
 
 
 
 
 
 ***********
 
 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
 
 ***
 
 
 
 --
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
 --
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Corr plot in subplot

2015-03-14 Thread Sudheer Joseph
Sorry,
 I tried both ax= and axes= both did not work. before testing I 
thought it is the correct way but did not work some how.

WIth best regards.
Sudheer
fig = plt.figure()
fig.subplots_adjust(left=0.001, wspace=0.01)
ax1 = fig.add_subplot(221);corrplot.Corrplot(df_djf,axes=ax1)
ax2 = fig.add_subplot(222);corrplot.Corrplot(df_mam,axes=ax2)
ax3 = fig.add_subplot(223);corrplot.Corrplot(df_jja,axes=ax3)
ax4 = fig.add_subplot(224);corrplot.Corrplot(df_son,axes=ax4)
   ...: 
---
TypeError Traceback (most recent call last)
 in ()
  1 fig = plt.figure()
  2 fig.subplots_adjust(left=0.001, wspace=0.01)
> 3 ax1 = fig.add_subplot(221);corrplot.Corrplot(df_djf,axes=ax1)
  4 ax2 = fig.add_subplot(222);corrplot.Corrplot(df_mam,axes=ax2)
  5 ax3 = fig.add_subplot(223);corrplot.Corrplot(df_jja,axes=ax3)

TypeError: __init__() got an unexpected keyword argument 'axes'



On Fri, 13/3/15, Adam Hughes  wrote:

 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Paul Hobson" 
 Cc: "Sudheer Joseph" , "Matplotlib Users" 

 Date: Friday, 13 March, 2015, 7:06 PM
 
 All the
 pandas plots that I've used take an axes keyword so
 try:
 
 c =
 corrplot.Corrplot(df, ax=ax1)
 
 or
 c =
 corrplot.Corrplot(df, axes=ax1)
 
 Do either of those
 work?
 On Fri,
 Mar 13, 2015 at 2:04 PM, Paul Hobson 
 wrote:
 What's the function signature of
 corrplot.CorrPlot? Hopefully you can pass an Axes object to
 it argument.-p
 On Fri, Mar 13, 2015 at
 9:02 AM, Sudheer Joseph 
 wrote:
 Dear
 Matplotlib exprets,
 
 I am trying to place the corrplot in subplot environment.
 But not able to figure out how to do it properly. Can any
 one advice please?
 
 
 
 
 
 from biokit.viz import corrplot
 
 df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65)
 for k in letters)))
 
 df = df.corr()
 
 c = corrplot.Corrplot(df)
 
 
 
 I wanted to make the corrplot in below 4 boxes which can
 come out as a single figure. The above data is a test data
 actually I wanted use seasonal data for this purpose.
 
 
 
 fig = plt.figure()
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 ax1 = fig.add_subplot(221)
 
 ax2 = fig.add_subplot(222)
 
 ax3 = fig.add_subplot(223)
 
 ax4 = fig.add_subplot(224)
 
 
 
 
 
 ***********
 
 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
 
 ***
 
 
 
 --
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
 --
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Corr plot in subplot

2015-03-17 Thread Sudheer Joseph
Hi Paul,
I could not succeed in plotting corrplot.Corrplot(df,ax=ax1).

infact the plotting procedure is
c=corrplot.Corrplot(df,ax=ax1)
then issue command
c.plot().
So there are 2 steps involved, which may be the complication. I am not very 
well versed with Matplotlib.
Kindly help.


On Fri, 13/3/15, Adam Hughes  wrote:

 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Paul Hobson" 
 Cc: "Sudheer Joseph" , "Matplotlib Users" 

 Date: Friday, 13 March, 2015, 7:06 PM
 
 All the
 pandas plots that I've used take an axes keyword so
 try:
 
 c =
 corrplot.Corrplot(df, ax=ax1)
 
 or
 c =
 corrplot.Corrplot(df, axes=ax1)
 
 Do either of those
 work?
 On Fri,
 Mar 13, 2015 at 2:04 PM, Paul Hobson 
 wrote:
 What's the function signature of
 corrplot.CorrPlot? Hopefully you can pass an Axes object to
 it argument.-p
 On Fri, Mar 13, 2015 at
 9:02 AM, Sudheer Joseph 
 wrote:
 Dear
 Matplotlib exprets,
 
 I am trying to place the corrplot in subplot environment.
 But not able to figure out how to do it properly. Can any
 one advice please?
 
 
 
 
 
 from biokit.viz import corrplot
 
 df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65)
 for k in letters)))
 
 df = df.corr()
 
 c = corrplot.Corrplot(df)
 
 
 
 I wanted to make the corrplot in below 4 boxes which can
 come out as a single figure. The above data is a test data
 actually I wanted use seasonal data for this purpose.
 
 
 
 fig = plt.figure()
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 ax1 = fig.add_subplot(221)
 
 ax2 = fig.add_subplot(222)
 
 ax3 = fig.add_subplot(223)
 
 ax4 = fig.add_subplot(224)
 
 
 
 
 
 ***********
 
 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
 
 ***
 
 
 
 --
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 
 --
 
 Dive into the World of Parallel Programming The Go Parallel
 Website, sponsored
 
 by Intel and developed in partnership with Slashdot Media,
 is your hub for all
 
 things parallel software development, from weekly thought
 leadership blogs to
 
 news, videos, case studies, tutorials and more. Take a look
 and join the
 
 conversation now. http://goparallel.sourceforge.net/
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 
 

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Corr plot in subplot

2015-03-17 Thread Sudheer Joseph
Hellow Paul,
 I thought I should show an example plot which shows the idea 
of what I was asking about corrplot. Below link shows it.  
http://matplotlib.org/examples/pylab_examples/multi_image.html

On Tue, 17/3/15, Sudheer Joseph  wrote:

 Subject: Re: [Matplotlib-users] Corr plot in subplot
 To: "Paul Hobson" , "Adam Hughes" 
 Cc: "Matplotlib Users" 
 Date: Tuesday, 17 March, 2015, 8:31 AM
 
 Hi Paul,
                 I could not succeed in
 plotting corrplot.Corrplot(df,ax=ax1).
 
 infact the plotting procedure is
 c=corrplot.Corrplot(df,ax=ax1)
 then issue command
 c.plot().
 So there are 2 steps involved, which may be the
 complication. I am not very well versed with Matplotlib.
 Kindly help.
 
 
 On Fri, 13/3/15, Adam Hughes 
 wrote:
 
  Subject: Re:
 [Matplotlib-users] Corr plot in subplot
  To:
 "Paul Hobson" 
  Cc: "Sudheer Joseph" ,
 "Matplotlib Users" 
  Date: Friday, 13 March, 2015, 7:06 PM
  
  All the
 
 pandas plots that I've used take an axes keyword so
  try:
  
  c =
  corrplot.Corrplot(df, ax=ax1)
 
 
  or
  c =
 
 corrplot.Corrplot(df, axes=ax1)
  
  Do either of those
  work?
  On Fri,
  Mar 13, 2015 at 2:04
 PM, Paul Hobson 
  wrote:
  What's the
 function signature of
  corrplot.CorrPlot?
 Hopefully you can pass an Axes object to
  it
 argument.-p
  On Fri, Mar 13, 2015 at
  9:02 AM, Sudheer Joseph 
  wrote:
  Dear
 
 Matplotlib exprets,
  
  I am
 trying to place the corrplot in subplot environment.
  But not able to figure out how to do it
 properly. Can any
  one advice please?
  
  
  
  
  
  from
 biokit.viz import corrplot
  
  df = pd.DataFrame(dict(( (k,
 np.random.random(10)+ord(k)-65)
  for k in
 letters)))
  
  df =
 df.corr()
  
  c =
 corrplot.Corrplot(df)
  
  
  
  I wanted to make the
 corrplot in below 4 boxes which can
  come
 out as a single figure. The above data is a test data
  actually I wanted use seasonal data for this
 purpose.
  
  
  
  fig = plt.figure()
  
 
 fig.subplots_adjust(left=0.2, wspace=0.6)
 
 
  ax1 = fig.add_subplot(221)
  
  ax2 =
 fig.add_subplot(222)
  
  ax3
 = fig.add_subplot(223)
  
 
 ax4 = fig.add_subplot(224)
  
  
  
  
  
 
 *******
  
  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
  
 
 ***
  
  
  
 
 --
  
  Dive into the World of
 Parallel Programming The Go Parallel
 
 Website, sponsored
  
  by
 Intel and developed in partnership with Slashdot Media,
  is your hub for all
  
  things parallel software development, from
 weekly thought
  leadership blogs to
  
  news, videos, case studies,
 tutorials and more. Take a look
  and join
 the
  
  conversation now. http://goparallel.sourceforge.net/
  
 
 ___
  
  Matplotlib-users mailing
 list
  
  Matplotlib-users@lists.sourceforge.net
  
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users
  
  
  
  
 
 --
  
  Dive into the World of
 Parallel Programming The Go Parallel
 
 Website, sponsored
  
  by
 Intel and developed in partnership with Slashdot Media,
  is your hub for all
  
  things parallel software development, from
 weekly thought
  leadership blogs to
  
  news, videos, case studies,
 tutorials and more. Take a look
  and join
 the
  
  conversation now. http://goparallel.sourceforge.net/
 
 ___
  
  Matplotlib-users mailing
 list
  
  Matplotlib-users@lists.sourceforge.net
  
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users
  
  
  
 

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] subplot layout

2016-04-25 Thread Sudheer Joseph
Thank you Paul,
Thanks for the tips related to margins and also about 
colormaps. Is there a way to stop the automatic aspect ratio setting ( though 
it it distors map in present case ) if I wanted to use that for other plots?

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 
***


On Mon, 25/4/16, Paul Hobson  wrote:

 Subject: Re: [Matplotlib-users] subplot layout
 To: "Sudheer Joseph" 
 Cc: "Matplotlib Users" 
 Date: Monday, 25 April, 2016, 4:33 PM
 
 Your
 basemap plot is likely setting the aspect of the axes to
 "equal", so it resizes the plot accordingly.
 Otherwise you'd have a pretty nasty amount of vertical
 distortion.
 When you save
 the figure, using bbox_inches='tight' will trim the
 excess white space from the
 margins:fig.savefig('map_and_bars.png',
 dpi=600, bbox_inches='tight')
 Also, you should try the new viridis
 color map :) 
http://matplotlib.org/users/colormaps.html?highlight=colormaps#miscellaneous
 
 
 
 On Mon, Apr 25, 2016 at
 9:05 AM, Sudheer Joseph 
 wrote:
 Hi,
 
            I am looking for a layout as seen in the
 empty layout attached which is produced using
 
 figsize(20,8),subplot(1,2,1);subplot(222);subplot(224)
 
 
 
 However when I use it for getting attached second figure the
 layout gets modified as seen in attached figure 2.
 
 fig = p.figure(figsize=(20,8))
 
 ax=p.subplot(121)
 
 ax1=p.subplot(222)
 
 ax2=p.subplot(224)
 
 
 
 Can any one suggest a way to get figure exactly as the empty
 layout?
 
 
 
 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
 ***
 --
 
 Find and fix application performance issues faster with
 Applications Manager
 
 Applications Manager provides deep performance insights into
 multiple tiers of
 
 your business applications. It resolves application problems
 quickly and
 
 reduces your MTTR. Get your free trial!
 
 https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] subplot layout

2016-04-25 Thread Sudheer Joseph
Hi Paul,

I tried to get the new colormap suggestion from you but could not get the 
colormap package. Where can I get it? google search did not took me to the 
package/
Is it a development package?
 May I know how to use  viridis color map  with an example plot? 


Below is an example code from the link you send

'''
For each colormap, plot the lightness parameter L* from CIELAB colorspace
along the y axis vs index through the colormap. Colormaps are examined in
categories as in the original matplotlib gallery of colormaps.
'''

from colormaps import cmaps
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
import matplotlib as mpl
from colorspacious import cspace_converter



*********** 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 
***


On Mon, 25/4/16, Paul Hobson  wrote:

 Subject: Re: [Matplotlib-users] subplot layout
 To: "Sudheer Joseph" 
 Cc: "Matplotlib Users" 
 Date: Monday, 25 April, 2016, 4:33 PM
 
 Your
 basemap plot is likely setting the aspect of the axes to
 "equal", so it resizes the plot accordingly.
 Otherwise you'd have a pretty nasty amount of vertical
 distortion.
 When you save
 the figure, using bbox_inches='tight' will trim the
 excess white space from the
 margins:fig.savefig('map_and_bars.png',
 dpi=600, bbox_inches='tight')
 Also, you should try the new viridis
 color map :) 
http://matplotlib.org/users/colormaps.html?highlight=colormaps#miscellaneous
 
 
 
 On Mon, Apr 25, 2016 at
 9:05 AM, Sudheer Joseph 
 wrote:
 Hi,
 
            I am looking for a layout as seen in the
 empty layout attached which is produced using
 
 figsize(20,8),subplot(1,2,1);subplot(222);subplot(224)
 
 
 
 However when I use it for getting attached second figure the
 layout gets modified as seen in attached figure 2.
 
 fig = p.figure(figsize=(20,8))
 
 ax=p.subplot(121)
 
 ax1=p.subplot(222)
 
 ax2=p.subplot(224)
 
 
 
 Can any one suggest a way to get figure exactly as the empty
 layout?
 
 
 
 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
 ***
 --
 
 Find and fix application performance issues faster with
 Applications Manager
 
 Applications Manager provides deep performance insights into
 multiple tiers of
 
 your business applications. It resolves application problems
 quickly and
 
 reduces your MTTR. Get your free trial!
 
 https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
 ___
 
 Matplotlib-users mailing list
 
 Matplotlib-users@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 
 

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib Figure margin transparancy

2016-08-05 Thread Sudheer Joseph


Dear Expert,
Recently after up-gradation of matplotlib and ubuntu 16.04 I am 
getting transparent figure axis when using the "linux color scheme"  option in 
ipython qtconsole. May I know if there is a way to fix this issue?. I  wanted 
to keep black screen as it reduces eye strain.

ipython qtconsole --matplotlib inline

If I save the image i am able to get axis properly but to see on screen as the  
axis is not plotted with white background the black axis line and labels are 
not visible. Earlier I used to get figures as attached in second figure.  
Earlier Satus which I am looking for below link
https://drive.google.com/open?id=0B3heUQNme7G5ZmVlUHpRakZxUlk
Present status without boarder below link


https://drive.google.com/open?id=0B3heUQNme7G5VkhZWHhiUnpfWDg
Kindly suggest a solution
with best regards,
Sudheer

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Fw: Matplotlib Figure margin transparancy

2016-08-09 Thread Sudheer Joseph
Hi,
I have send below query to matplotlib user group recently but did not get 
posted so far. Can you please tell me is there is any thin wrong with the 
message?
With best regards,
Sudheer

> 
> Dear Expert,
> Recently after up-gradation of matplotlib and ubuntu 16.04 I 
> am 
> getting transparent figure axis when using the "linux color scheme"  
> option in ipython qtconsole. May I know if there is a way to fix this issue?. 
> I  
> wanted to keep black screen as it reduces eye strain.
> 
> ipython qtconsole --matplotlib inline
> 
> If I save the image i am able to get axis properly but to see on screen as 
> the  
> axis is not plotted with white background the black axis line and labels are 
> not 
> visible. Earlier I used to get figures as attached in second figure.  
> Earlier Satus which I am looking for below link
> https://drive.google.com/open?id=0B3heUQNme7G5ZmVlUHpRakZxUlk
> Present status without boarder below link
> 
> 
> https://drive.google.com/open?id=0B3heUQNme7G5VkhZWHhiUnpfWDg
> 
> Kindly suggest a solution
> with best regards,
> Sudheer
> 

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] plot control

2017-04-19 Thread Sudheer Joseph
Dear Experts.I have been trying to modify plot properties of taylor diagram 
from below package. I wanted to make markerfacecolor as None( this allows me to 
show symbols which falls over another) of s as possible in normal matplotlib 
plots but I am not sure how to pass the argument in modified figure environment 
of taylor plot. If I try to use markerfacecolor option the code says it do not 
know about such option. I was also checking it is possible specify alpha= n so 
that the color intensity of symbol can be modified. But both options are not 
working or I am not putting it in proper way in such situation. 
Please advice if it is possible.Sudheer

https://pypi.python.org/packages/1e/98/d6d5d9200fcec4fdbd20f0f084b6e41e176284786315449cc0c896a411e8/SkillMetrics-1.1.2.tar.gz#md5=7d5e7200375b1c5e1c4fb8344624be67
sm.taylor_diagram(sdev,crmsd,ccoef,markerLabel=label,markerLegend = 
'on',markerobs='v',markerfacecolor='None',s
   ...: tyleOBS='-',colOBS='r',titleobs='RAMA_SST')
---
ValueError    Traceback (most recent call last)
 in ()
> 1 sm.taylor_diagram(sdev,crmsd,ccoef,markerLabel=label,markerLegend = 
'on',markerobs='v',markerfacecolor='None',styleOBS='-',colOBS='r',titleobs='RAMA_SST')

/usr/local/lib/python2.7/dist-packages/skill_metrics/taylor_diagram.pyc in 
taylor_diagram(*args, **kwargs)
 71 
 72 # Get options
---> 73 option = get_taylor_diagram_options(CORs,**kwargs)
 74 #    print option # debug
 75 #

/usr/local/lib/python2.7/dist-packages/skill_metrics/get_taylor_diagram_options.pyc
 in get_taylor_diagram_options(*args, **kwargs)
    177 optname = optname.lower()
    178 if not optname in option:
--> 179 raise ValueError('Unrecognized option: ' + optname)
    180 else:
    181 # Replace option value with that from arguments

ValueError: Unrecognized option: markerfacecolor
 *** 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 
***--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] plot control

2017-04-22 Thread Sudheer Joseph
Thank you,  I did contact them, but it appears he did not 
understand, the issue I was telling him. Then I thought it is my lack of 
expertise which made it not work.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 
 To: Sudheer Joseph  
Cc: Matplotlib Users 
 Sent: Wednesday, 19 April 2017 9:44 PM
 Subject: Re: [Matplotlib-users] plot control
   
This would seem like a bug in that package's code. The traceback shows that it 
is performing its own check on the passed in kwargs, and failing to recognize 
it as a valid argument. I suggest contacting the maintainers of the 
"skill_metrics" package and find out from them if there is a bug in their 
package. I am unfamiliar with this package, so I can't say anything for certain.

Cheers!
Ben Root


On Wed, Apr 19, 2017 at 11:47 AM, Sudheer Joseph  
wrote:

Dear Experts.I have been trying to modify plot properties of taylor diagram 
from below package. I wanted to make markerfacecolor as None( this allows me to 
show symbols which falls over another) of s as possible in normal matplotlib 
plots but I am not sure how to pass the argument in modified figure environment 
of taylor plot. If I try to use markerfacecolor option the code says it do not 
know about such option. I was also checking it is possible specify alpha= n so 
that the color intensity of symbol can be modified. But both options are not 
working or I am not putting it in proper way in such situation. 
Please advice if it is possible.Sudheer

https://pypi.python.org/ packages/1e/98/ d6d5d9200fcec4fdbd20f0f084b6e4 
1e176284786315449cc0c896a411e8 /SkillMetrics-1.1.2.tar.gz# md5= 
7d5e7200375b1c5e1c4fb8344624be 67
sm.taylor_diagram(sdev,crmsd, ccoef,markerLabel=label, markerLegend = 
'on',markerobs='v', markerfacecolor='None',s
   ...: tyleOBS='-',colOBS='r', titleobs='RAMA_SST')
-- -- ---
ValueError     Traceback (most recent call last)
 in ()
> 1 sm.taylor_diagram(sdev,crmsd, ccoef,markerLabel=label, markerLegend = 
'on',markerobs='v', markerfacecolor='None', styleOBS='-',colOBS='r', 
titleobs='RAMA_SST')

/usr/local/lib/python2.7/dist- packages/skill_metrics/taylor_ diagram.pyc in 
taylor_diagram(*args, **kwargs)
 71 
 72 # Get options
---> 73 option = get_taylor_diagram_options( CORs,**kwargs)
 74 #    print option # debug
 75 #

/usr/local/lib/python2.7/dist- packages/skill_metrics/get_ 
taylor_diagram_options.pyc in get_taylor_diagram_options(* args, **kwargs)
    177 optname = optname.lower()
    178 if not optname in option:
--> 179 raise ValueError('Unrecognized option: ' + optname)
    180 else:
    181 # Replace option value with that from arguments

ValueError: Unrecognized option: markerfacecolor
 ** ** *** 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;sud heer.jos...@yahoo.com Web- 
http://oppamthadathil.tripod. com ** 
** ***
-- -- --
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
__ _
Matplotlib-users mailing list
Matplotlib-users@lists. sourceforge.net
https://lists.sourceforge.net/ lists/listinfo/matplotlib- users





   --
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] matplotlib-1.0.1 with Python 2.7.2 build error

2011-10-07 Thread Sudheer Joseph
Dear Users,
  I am trying to add module matplotlib-1.0.1 to
my Python 2.7.2 on an IBM power6 with Aix 5.3 . I get the below error when I
issue the command
python setip.py build did any one faced same issue or can I get any expert
suggestion for fixing this issue.

with best regards,
Sudheer

xlc++ xlc -bI:/gpfs1/sjo/pkgs/local/lib/python2.7/config/python.exp
build/temp.aix-5.3-2.7/src/ft2font.o build/temp.aix-5.3-2.7/src/mplutils.o
build/temp.aix-5.3-2.7/CXX/cxx_extensions.o
build/temp.aix-5.3-2.7/CXX/cxxsupport.o
build/temp.aix-5.3-2.7/CXX/IndirectPythonInterface.o
build/temp.aix-5.3-2.7/CXX/cxxextensions.o -L/opt/freeware/lib
-L/usr/local/lib -lfreetype -lz -lstdc++ -lm -o
build/lib.aix-5.3-2.7/matplotlib/ft2font.so

sjo@f2n1login1>xlc++
-bI:/gpfs1/sjo/pkgs/local/lib/python2.7/config/python.exp
build/temp.aix-5.3-2.7/src/ft2font.o build/temp.aix-5.3-2.7/src/mplutils.o
build/temp.aix-5.3-2.7/CXX/cxx_extensions.o
build/temp.aix-5.3-2.7/CXX/cxxsupport.o
build/temp.aix-5.3-2.7/CXX/IndirectPythonInterface.o
build/temp.aix-5.3-2.7/CXX/cxxextensions.o -L/opt/freeware/lib
-L/usr/local/lib -lfreetype -lz -lstdc++ -lm -o
build/lib.aix-5.3-2.7/matplotlib/ft2font.so
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.

i compiled with -bnoquiet option and get below details

(ld): setopt 64
(ld): halt 4
(ld): setfflag 4
(ld): savename build/lib.aix-5.3-2.7/matplotlib/ft2font.so
(ld): filelist 15 2
(ld): i /lib/crt0_64.o
(ld): i build/temp.aix-5.3-2.7/src/ft2font.o
(ld): i build/temp.aix-5.3-2.7/src/mplutils.o
(ld): i build/temp.aix-5.3-2.7/CXX/cxx_extensions.o
(ld): i build/temp.aix-5.3-2.7/CXX/cxxsupport.o
(ld): i build/temp.aix-5.3-2.7/CXX/IndirectPythonInterface.o
(ld): i build/temp.aix-5.3-2.7/CXX/cxxextensions.o
(ld): lib /opt/freeware/lib/libfreetype.a
(ld): lib /opt/freeware/lib/libz.a
(ld): lib /opt/freeware/lib/libstdc++.a
(ld): lib /usr/lib/libm.a
(ld): lib /usr/vac/lib/libxlopt.a
(ld): lib /usr/vac/lib/libxl.a
(ld): lib /usr/vacpp/lib/libC.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libfreetype.a[libfreetype.so.6]: 343 symbols
imported.
LIBRARY: Shared object libz.a[libz.so.1]: 72 symbols imported.
LIBRARY: Symbols imported from import file
/usr/vacpp/lib/libC.a[shr_32.imp]: 0
LIBRARY: Symbols imported from import file
/usr/vacpp/lib/libC.a[shr2_32.imp]: 0
LIBRARY: Symbols imported from import file
/usr/vacpp/lib/libC.a[shr3_32.imp]: 0
LIBRARY: Symbols imported from import file
/usr/vacpp/lib/libC.a[ansi_32.imp]: 0
LIBRARY: Symbols imported from import file
/usr/vacpp/lib/libC.a[shr_64.imp]: 383
LIBRARY: Symbols imported from import file
/usr/vacpp/lib/libC.a[shr2_64.imp]: 24
LIBRARY: Symbols imported from import file
/usr/vacpp/lib/libC.a[shr3_64.imp]: 27
LIBRARY: Symbols imported from import file
/usr/vacpp/lib/libC.a[ansi_64.imp]: 2448
LIBRARY: Shared object libC.a[ansi_64.o]: 2658 symbols imported.
LIBRARY: Shared object libc.a[shr_64.o]: 2669 symbols imported.
LIBRARY: Shared object libc.a[posix_aio_64.o]: 20 symbols imported.
LIBRARY: Shared object libc.a[aio_64.o]: 18 symbols imported.
LIBRARY: Shared object libc.a[pse_64.o]: 5 symbols imported.
LIBRARY: Shared object libc.a[dl_64.o]: 4 symbols imported.
LIBRARY: Shared object libc.a[pty_64.o]: 1 symbols imported.
FILELIST: Number of previously inserted files processed: 15
(ld): imports /gpfs1/sjo/pkgs/local/lib/python2.7/config/python.exp
IMPORTS: Symbols imported from import file
/gpfs1/sjo/pkgs/local/lib/python2.7/config/python.exp: 1206
(ld): resolve
RESOLVE: 63 of 18106 symbols were kept.
(ld): addgl /usr/lib/glink64.o
ADDGL: Glink code added for 11 symbols.
(ld): er full
ld: 0711-318 ERROR: Undefined symbols were found.
The following symbols are in error:
 SymbolInpndx  TY CL Source-File(Object-File) OR
Import-File{Shared-object}
  RLD: Address  Section  Rld-type Referencing
Symbol
 
--
 .main [10]ER PR crt0_64.s(/lib/crt0_64.o)
   0098 .textR_RBR[34]
 .__start
ER: The return code is 8.
ld: 0711-317 ERROR: Undefined symbol: .main

-- 
with best regards

Sudheer

**
Sudheer Joseph

Scientist

INDIAN NATIONAL CENTRE FOR OCEAN INFORMATION SERVICES (INCOIS)
MINISTRY OF EARTH SCIENCES, GOVERNMENT OF INDIA
"OCEAN VALLEY" PRAGATHI NAGAR (BO)
OPP.JNTU, NIZAMPET SO
Andhra Pradesh, India. PIN- 500 090.
TEl:+91-40-23044600(R),Tel:+91-9440832534(Mobile)
Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
E-mail:  sudheer.jos...@yahoo.com;
s...@incois.gov.in.
Web- http://oppamthadathil.tripod.com
   --* ---
"The ultimate measure of a man is
not where he stands in moments of
comfort and convenience, but where
he 

[Matplotlib-users] cross correlation

2013-02-07 Thread Sudheer Joseph
Dear Users,
              I am relatively new to Matplotlib. I wanted to find cross 
correlation between 2 time series for my research and was looking at options 
available with python and found 
http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.xcorr . However I 
wanted to save the results in a netcdf file for further use. ie the 
correlation, lags and significance if possible. Is there a way to get the corr 
and lags from the axis.xcorr ?? any help in this matter will be greatly 
appreciated. 
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
***--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] cross correlation

2013-02-08 Thread Sudheer Joseph
Thank you verymuch Hobson,
                                      However I think I did not understand the 
suggestion by you fully( pardon my ignorance). I use the below test code from 
matplotlib site. How does one make a call to get lags and correlation 
corresponding to the x and y values in the plot. a Print command of  
In [23]: print ax1.xcorr
>
results as above. Is it possible to assign the xcorr,lags=ax1.xcorr(x, y, 
usevlines=True, maxlags=50, normed=True, lw=2) ? with a different syntax? I get 
below error when I try the above .
In [27]: xcorr,lags=ax1.xcorr(x, y, usevlines=True, maxlags=50, normed=True, 
lw=2)
---
ValueError                                Traceback (most recent call last)
/home/sjo/work/PY_WORK/stats/ in ()
> 1 xcorr,lags=ax1.xcorr(x, y, usevlines=True, maxlags=50, normed=True, 
lw=2)

ValueError: too many values to unpack



import matplotlib.pyplot as plt
import numpy as np
x,y = np.random.randn(2,100)

fig = plt.figure()
ax1 = fig.add_subplot(211)
ax1.xcorr(x, y, usevlines=True, maxlags=50, normed=True, lw=2)
ax1.grid(True)
ax1.axhline(0, color='black', lw=2)
ax2 = fig.add_subplot(212, sharex=ax1)

ax2.acorr(x, usevlines=True, normed=True, maxlags=50, lw=2)
ax2.grid(True)
ax2.axhline(0, color='black', lw=2)
plt.show()


 
From: Paul Hobson 
To: Sudheer Joseph  
Cc: "matplotlib-users@lists.sourceforge.net" 
 
Sent: Thursday, 7 February 2013 10:31 PM
Subject: Re: [Matplotlib-users] cross correlation
 






On Thu, Feb 7, 2013 at 3:24 AM, Sudheer Joseph  wrote:

Dear Users,
>              I am relatively new to Matplotlib. I wanted to find cross 
>correlation between 2 time series for my research and was looking at options 
>available with python and found 
>http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.xcorr . However I 
>wanted to save the results in a netcdf file for further use. ie the 
>correlation, lags and significance if possible. Is there a way to get the corr 
>and lags from the axis.xcorr ?? any help in this matter will be greatly 
>appreciated. 
>Sudheer

Sudheer,

A call to axes.xcorr returns the lags, correlation (from np.correlate) and the 
line artists on the figure.

In IPython, doing "plt.xcorr??" should provide sufficient information. It's a 
pretty simple method.
-paul--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] cross correlation

2013-02-20 Thread Sudheer Joseph
Thank you  very much Smith and Paul,
                                          I was away from office due to a 
medical situation. So could not respond and thank you regarding the help. I 
have got the results now and the tips from both of you were extremely useful. I 
am facing an issue with the code when I call plt.xcorr,  in a loop. it builds 
up usage of memory by python and reaches to the RAM what ever available ( in my 
4 GB laptop it reaches almost full and in my 24 GB desktop it reaches the 
available. I suspected the plot not being closed during each iteration so have 
given a plt.close('all') in the loop. after which it is taking a good time to 
run the code which was otherwise faster until ram usage reaches its maximum.
Is there a way to get out of this situation?. I am attaching the code here and 
also the link to the data I am using. If possible kindly help.

ftp ftpser.incois.gov.in
user temp
password incoistemp
cd /home0/temp/comp
bin
mget qu_test.nc.gz gunzip qu_test.nc.gz

 
*******
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: Sterling Smith 
To: Sudheer Joseph  
Cc: Paul Hobson ; "matplotlib-users@lists.sourceforge.net" 
 
Sent: Friday, 8 February 2013 10:23 PM
Subject: Re: [Matplotlib-users] cross correlation
 
Sudheer,

For the documentation you are looking for

print ax1.xcorr.__doc__

(Paul tried to give you the IPython method of getting that documentation which 
is by typing a ? (or ??) after the desired object.)

In the documentation (at the link you gave 
http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.xcorr), it says 
that there are three objects returned by xcorr:
Return value is a tuple (*lags*, *c*, *line*) where:

  - *lags* are a length ``2*maxlags+1`` lag vector

  - *c* is the ``2*maxlags+1`` auto correlation vector

  - *line* is a :class:`~matplotlib.lines.Line2D` instance
     returned by :func:`~matplotlib.pyplot.plot`.

So the error you were getting is due to the fact that you have only specified 
two variables to hold the three returned objects.

Try:
lags,c,line = ax1.xcorr   .

(Note that you have xcorr and lags backwards in your attempt.)

-Sterling

On Feb 8, 2013, at 1:56AM, Sudheer Joseph wrote:

> Thank you verymuch Hobson,
>                                       However I think I did not understand 
>the suggestion by you fully( pardon my ignorance). I use the below test code 
>from matplotlib site. How does one make a call to get lags and correlation 
>corresponding to the x and y values in the plot. a Print command of  
> In [23]: print ax1.xcorr
>  0x44c1410>>
> results as above. Is it possible to assign the xcorr,lags=ax1.xcorr(x, y, 
> usevlines=True, maxlags=50, normed=True, lw=2) ? with a different syntax? I 
> get below error when I try the above .
> In [27]: xcorr,lags=ax1.xcorr(x, y, usevlines=True, maxlags=50, normed=True, 
> lw=2)
> ---
> ValueError                                Traceback (most recent call last)
> /home/sjo/work/PY_WORK/stats/ in ()
> > 1 xcorr,lags=ax1.xcorr(x, y, usevlines=True, maxlags=50, normed=True, 
> lw=2)
> 
> ValueError: too many values to unpack
> 
> 
> 
> import matplotlib.pyplot as plt
> import numpy as np
> x,y = np.random.randn(2,100)
> fig = plt.figure()
> ax1 = fig.add_subplot(211)
> ax1.xcorr(x, y, usevlines=True, maxlags=50, normed=True, lw=2)
> ax1.grid(True)
> ax1.axhline(0, color='black', lw=2)
> ax2 = fig.add_subplot(212, sharex=ax1)
> ax2.acorr(x, usevlines=True, normed=True, maxlags=50, lw=2)
> ax2.grid(True)
> ax2.axhline(0, color='black', lw=2)
> plt.show()
> 
>  
> From: Paul Hobson 
> To: Sudheer Joseph  
> Cc: "matplotlib-users@lists.sourceforge.net" 
>  
> Sent: Thursday, 7 February 2013 10:31 PM
> Subject: Re: [Matplotlib-users] cross correlation
> 
> 
> 
> 
> On Thu, Feb 7, 2013 at 3:24 AM, Sudheer Joseph  
> wrote:
> Dear Users,
>               I am relatively new to Matplotlib. I wanted to find cross 
>correlation between 2 time series for my research and was looking at options 
>available with python and found 
>http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.xcorr . However I 
>wanted to save the results in a netcdf file for further use. ie the 
>correlat

Re: [Matplotlib-users] cross correlation

2013-02-21 Thread Sudheer Joseph
Thank you Pierre,
                              I will test the other options. I did not know the 
number limitation in case of plt.xcorr.
Thanks a lot
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: Pierre Haessig 
To: matplotlib-users@lists.sourceforge.net 
Sent: Thursday, 21 February 2013 9:52 PM
Subject: Re: [Matplotlib-users] cross correlation
 

Hi Sudheer,

Le 21/02/2013 02:22, Sudheer Joseph a écrit : 
Thank you  very much Smith and Paul,
>                                          I was away from office due to a 
>medical situation. So could not respond and thank you regarding the help. I 
>have got the results now and the tips from both of you were extremely useful. 
>I am facing an issue with the code when I call plt.xcorr,  in a loop. it 
>builds up usage of memory by python and reaches to the RAM what ever available 
>( in my 4 GB laptop it reaches almost full and in my 24 GB desktop it reaches 
>the available. I suspected the plot not being closed during each iteration so 
>have given a plt.close('all') in the loop. after which it is taking a good 
>time to run the code which was otherwise faster until ram usage reaches its 
>maximum.
>Is there a way to get out of this situation?. I am attaching the code here and 
>also the link to the data I am using. If possible kindly help.
>
Thanks for sharing the code. By a quick look at gen_xcorr_wnd.py,
you are generating a quite high number (about len(lons)*len(lats))
of xcorr series over 365 lags. Here are two thoughts about why I
would not recommend using xcorr from matplotlib for this job :

1) There is an overhead in creating a plot object which is
unnecessary since you're only interested in correlation values

2) internally, plt.xcorr uses numpy.correlate

(https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes.py#L4319
 and https://github.com/numpy/numpy/blob/master/numpy/core/numeric.py#L731) 
which is quite fast but unfortunately cannot be well tuned in terms of the 
output length (only three modes : 'valid', 'same' or 'full'. Matplotlib uses 
'full' )
All this to say that when you're interested in 365 correlation
values, the internal computations takes place on (N+M-1) points
(where N, M are the length of the input vectors, i.e. 2189 if I'm
right) and so about 90 % of the output is thrown away.



This being said, there is a tiny issue : I don't know a good module
which has the (x)correlation function. statsmodel has acf (aka
correlation) but I don't remember if there is crosscorrelation. For
acf has two computation modes : one based on fft, one based on
numpy.correlate which suffer from the same problem as matplotlib's
xcorr ( 
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/tsa/stattools.py#L347)

best,
Pierre

--
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--
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


Re: [Matplotlib-users] cross correlation

2013-02-27 Thread Sudheer Joseph
Dear Pierre,
                        I was checking the plt.xcorr and it calls the 
np.correlate in side it. It calls np.correlate(ts1,ts2, mode=2).
Is there a way to see which vector is sided back in time? ie 
ts1[t1,t2,t3,t4] ts2[t1,t2,t3,t4...]  ( ts2[t2] correlated with ts1[t1] or 
ts2[t1] is correlated with ts2[t2] ie {to make out which one is the cause and 
which is effect)
in case of cross correlation it can be obtained by either sliding ts1 back in 
time or ts2 back in time. Is there a way to know this? I am not able to make 
much from np.correlate. Also is there a way to get 95% significance or p value 
from the xcorr.? in case of matlab? in matlab xcorr can be called with option 
of corcoeff instead of default cross correlation but is there similar option 
for matplotlib?
sincerely.
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
***


--
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


Re: [Matplotlib-users] cross correlation

2013-03-01 Thread Sudheer Joseph


Thank you Pierre.
 with best regards,
Sudheer
From: Pierre Haessig 
To: 
Cc: "matplotlib-users@lists.sourceforge.net" 
 
Sent: Thursday, 28 February 2013 7:15 PM
Subject: Re: [Matplotlib-users] cross correlation
 
Hi,

Le 27/02/2013 10:01, Sudheer Joseph a écrit :
> I was checking the plt.xcorr and it calls the np.correlate in side it.
> It calls np.correlate(ts1,ts2, mode=2).
Just as a side note, mode=2 is the old fashioned way to specify
mode='full' [1]. This may help in reading the numpy.correlate doc.

This being said, I'm really unfamiliar with cross-correlations. I just
kind of know the usual 95% confidence interval for autocorrelation at
1.96/sqrt(n). Just as a quick check, this is what R uses by default, but
there are options like ci.type get more appropriate intervals for an MA
series
(http://stat.ethz.ch/R-manual/R-patched/library/stats/html/plot.acf.html)

best,
Pierre

[1] https://github.com/numpy/numpy/blob/master/numpy/core/numeric.py#L678


--
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--
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


[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 make  
x,y,z= using np.meshgrid(lat,depth,temp)
how to go about this? Is there a set of codes for handling such graphs?

url='http://www.marine.csiro.au/dods/nph-dods/dods-data/climatology-netcdf/levitus_monthly_temp_98.nc'
import cdms2
from matplotlib import pyplot as plt
from netCDF4 import Dataset as ncd
f=cdms2.open(url)
f.variables()
x=f.getAxis('lon')
y=f.getAxis('lat')
z=f.getAxis('z')
depth=z.getData()
lat=y.getData()
lon=x.getData()
temp=f('TEMP')
lonmin=np.where(lon==45)
lonmax=np.where(lon==100)
nlon=lon[lonmin:lonmax]
lat0=np.where(lat==0.5)
ntemp=temp[:,lat0,lonmin:lonmax]

basically I wanted to make a plot plt.plot(nlon,depth,ntemp)
Please 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
***--
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


Re: [Matplotlib-users] depth longitude plot

2013-03-02 Thread Sudheer Joseph
Tank you very much for both solutions Phil,

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: 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
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['lat']
lons = ds.variables['lon']
depths = ds.variables['z']


# filter all but one latitude
lat_index = np.where(lats[:] == 0.5)[0][0]
lats = lats[lat_index]

# filter a range of longitudes
lon_lower_index = np.where(lons[:] == 44.5)[0][0]
lon_upper_index = np.where(lons[:] == 100.5)[0][0]
lons = lons[lon_lower_index:lon_upper_index]

temp = temp[0, :, lat_index, lon_lower_index:lon_upper_index]


plt.pcolormesh(lons, depths[:], temp)
plt.gca().invert_yaxis()

plt.show()




The indexing approach used here is quite flakey, so I certainly wouldn't use 
this in anything operational.

Hope this helps,

Phil

--
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--
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


Re: [Matplotlib-users] depth longitude plot

2013-03-04 Thread Sudheer Joseph
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 
To: Sudheer Joseph  
Cc: Phil Elson ; "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  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


Re: [Matplotlib-users] depth longitude plot

2013-03-04 Thread Sudheer Joseph
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 concerns,
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?
2) The labels are appearing cluttered at about 100m depth though they culd have 
spread apart at each level. Is there a way to control their placing to avoid 
cluttering?
3) Is there a way to make the longitude as in case of maps ie can the x axis 
labels be 50E 60E ... 90E
I am not sure if I am too much ambitious with regard to matplotlib, but I was 
using ferret where it takes care of the labeling.
with best regards,
Sudheer 
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['lat']
lons = ds.variables['lon']
depths = ds.variables['z']

# filter depths
dmin = np.where(depths[:] == 0.)[0][0]
dmax = np.where(depths[:] == 1000)[0][0]
# filter all but one latitude
lat_index = np.where(lats[:] == 0.5)[0][0]
lats = lats[lat_index]
# filter a range of longitudes
lon_lower_index = np.where(lons[:] == 44.5)[0][0]
lon_upper_index = np.where(lons[:] == 95.5)[0][0]
lons = lons[lon_lower_index:lon_upper_index]
depths=depths[dmin:dmax]
temp = temp[0,dmin:dmax, lat_index, lon_lower_index:lon_upper_index]
#plt.pcolormesh(lons,depths, temp)
nx,ny=np.meshgrid(lons,depths)
clevs=np.arange(temp.min(),temp.max()+2,temp.std()/5)
norm = plt.cm.colors.Normalize(vmax=abs(temp).max(), vmin=-abs(temp).max())
cmap = plt.cm.gist_rainbow_r 
plt.figure()
cs1=plt.contourf(nx,ny,temp, clevs,cmap=plt.cm.get_cmap(cmap, len(clevs)-1))
cs2=plt.contour(nx,ny,temp, cs1.levels,colors = 'k',linewidth=2,hold='on')
plt.clabel(cs2,inline=True, fmt='%1.1f', fontsize=18)
cb = plt.colorbar(cs1,pad=.02) #(location='right')#,size="5%", pad='2%')
plt.gca().invert_yaxis()
plt.show()
 
***
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: Jody Klymak 
To: Sudheer Joseph  
Cc: "Matplotlib-users@lists.sourceforge.net" 
 
Sent: Tuesday, 5 March 2013 2:10 AM
Subject: Re: [Matplotlib-users] depth longitude plot
 


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  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 
>
>To: Benjamin Root  
>Cc: "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 
>To: Sudheer Joseph  
>Cc: Phil Elson ; 
>"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  
>wrote:
>
>Hi Phil,
>>
>>
>>Though iris looked to be promising it needed many other lib

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 appear 
to take the given value and it works always with default value..


2) The labels are appearing cluttered at about 100m depth though they culd have 
spread apart at each level. Is there a way to control their placing to avoid 
cluttering?

This has been a long-standing issue with matplotlib.  There has been 
improvements, but it still isn't perfect.  I am not familiar with some of the 
newer tricks that are available.
Hope some one tried those will respond!
 
3) Is there a way to make the longitude as in case of maps ie can the x axis 
labels be 50E 60E ... 90E

You can set the tick formatter.  Here is one example of how to do it.

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

Thank you


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


[Matplotlib-users] matplotlib on aix5.3

2013-03-08 Thread Sudheer Joseph
Dear Users,
                           Are there any body who use matplotlib on AIX5.3, I 
tried to make it on our IBN pwer 6 machine with AIX 5.3 on it and getting below 
errors any advice on this matter will be  of great help.
Apparently there is a library error, is there a way to look at errors more 
specifically during 

python setup.py install 
I exported export CC=xlc++_r
and CXX=" "
with best regards,
Sudheer
 be attained by recompiling and specifying MAXMEM option with a value greater 
than 8192.
    1500-030: (I) INFORMATION: Py::String::as_std_string() const: Additional 
optimization may be attained by recompiling and specifying MAXMEM option with a 
value greater than 8192.
ld: 0711-317 ERROR: Undefined symbol: __dl__FPv
ld: 0711-317 ERROR: Undefined symbol: 
__UnsupportedConditionalExpressionDestruction__FPvl
ld: 0711-317 ERROR: Undefined symbol: ._Xlen__Q2_3std12_String_baseCFv
ld: 0711-317 ERROR: Undefined symbol: .__ThrowV6
ld: 0711-317 ERROR: Undefined symbol: .__dl__FPv
ld: 0711-317 ERROR: Undefined symbol: .__ct__Q2_3std7_LockitFi
ld: 0711-317 ERROR: Undefined symbol: .clear__Q2_3std8ios_baseFib
ld: 0711-317 ERROR: Undefined symbol: .__ReThrowV6
ld: 0711-317 ERROR: Undefined symbol: .__setUncaughtExceptionFlag__3stdFb
ld: 0711-317 ERROR: Undefined symbol: .__CleanupCatchV6a
ld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std7_LockitFv
ld: 0711-317 ERROR: Undefined symbol: .uncaught_exception__3stdFv
ld: 0711-317 ERROR: Undefined symbol: .unexpected__3stdFv
ld: 0711-317 ERROR: Undefined symbol: .terminate__3stdFv
ld: 0711-317 ERROR: Undefined symbol: .__nw__FUl
ld: 0711-317 ERROR: Undefined symbol: ._Xran__Q2_3std12_String_baseCFv
ld: 0711-317 ERROR: Undefined symbol: .__vd__FPv
ld: 0711-317 ERROR: Undefined symbol: __PureVirtualCalled
ld: 0711-317 ERROR: Undefined symbol: .__CatchMatch
ld: 0711-317 ERROR: Undefined symbol: .__vn__FUl
ld: 0711-317 ERROR: Undefined symbol: .__DynamicPtrCast
ld: 0711-317 ERROR: Undefined symbol: cerr__3std
ld: 0711-317 ERROR: Undefined symbol: 
id__Q2_3std7num_putXTcTQ2_3std19ostreambuf_iteratorXTcTQ2_3std11char_traitsXTc___
ld: 0711-317 ERROR: Undefined symbol: _Id_cnt__Q3_3std6locale2id
ld: 0711-317 ERROR: Undefined symbol: ._Getfacet__Q2_3std6localeCFUl
ld: 0711-317 ERROR: Undefined symbol: id__Q2_3std5ctypeXTc_
ld: 0711-317 ERROR: Undefined symbol: ._Init__Q2_3std8ios_baseFv
ld: 0711-317 ERROR: Undefined symbol: ._Addstd__Q2_3std8ios_baseFv
ld: 0711-317 ERROR: Undefined symbol: ._Init__Q2_3std6localeFv
ld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std8ios_baseFv
ld: 0711-317 ERROR: Undefined symbol: .__ct__Q2_3std8_LocinfoFPCci
ld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std8_LocinfoFv
ld: 0711-317 ERROR: Undefined symbol: _Cltab__Q2_3std5ctypeXTc_
ld: 0711-317 ERROR: Undefined symbol: ._Getctype__FPCc
ld: 0711-317 ERROR: Undefined symbol: ._Tolower
ld: 0711-317 ERROR: Undefined symbol: ._Toupper
ld: 0711-317 ERROR: Undefined symbol: _BADOFF__3std
ld: 0711-317 ERROR: Undefined symbol: _Fpz__3std
ld: 0711-317 ERROR: Undefined symbol: ._Nomemory__3stdFv
ld: 0711-317 ERROR: Undefined symbol: id__Q2_3std8numpunctXTc_
ld: 0711-317 ERROR: Undefined symbol: ._Getnumpunct__FPCc
ld: 0711-317 ERROR: Undefined symbol: ._GetCatName__FiPCc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
 
*******
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
***--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] matplotlib multiple windows comparison

2013-03-11 Thread Sudheer Joseph
Dear experts,
Is there a way to get back to the prompt after a plot is made and displayed 
with out closing the plot?
The objective is to compare to plots or check some aspect about the plot made 
from the loaded variables. This is the standard behavior of matlab after 
plotting we get the prompt and we can make another plot if we want to compare 
2. I know there is subplot option but it will be of small size if I need to 
make a spatial map at to time intervals and compare. The detail of my 
matplotlib is below


I use Ubuntu 12.04 64 bit version
and

In [3]: matplotlib.get_backend()
Out[3]: 'WXAgg'

In [4]: matplotlib.__version__
Out[4]: '1.2.0'

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
***



. 
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib multiple windows comparison

2013-03-12 Thread Sudheer Joseph
Thank you Phil, 
                            But I had tried it earlier after seeing a another 
mail thread. I get command prompt but no figure pops up.

In [3]: import matplotlib.pyplot as plt

In [4]: plt.ion()

In [5]: plt.plot(range(10))
Out[5]: []

In [6]: 

 Any way out??
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: Phil Elson 
To: Sudheer Joseph  
Cc: "matplotlib-users@lists.sourceforge.net" 
 
Sent: Tuesday, 12 March 2013 3:08 PM
Subject: Re: [Matplotlib-users] matplotlib multiple windows comparison
 

Hi Sudheer,

Try the interactive mode 
(http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.ion):


>>> import matplotlib.pyplot as plt
>>> plt.ion()
>>> plt.plot(range(10))
[]

**a figure pops up here and hands you back the python command line**


>>>


Regards,






On 12 March 2013 00:04, Sudheer Joseph  wrote:

Dear experts,
>Is there a way to get back to the prompt after a plot is made and displayed 
>with out closing the plot?
>The objective is to compare to plots or check some aspect about the plot made 
>from the loaded variables. This is the standard behavior of matlab after 
>plotting we get the prompt and we can make another plot if we want to compare 
>2. I know there is subplot option but it will be of small size if I need to 
>make a spatial map at to time intervals and compare. The detail of my 
>matplotlib is below
>
>
>
>I use Ubuntu 12.04 64 bit version
>and
>
>
>In [3]: matplotlib.get_backend()
>Out[3]: 'WXAgg'
>
>
>In [4]: matplotlib.__version__
>Out[4]: '1.2.0'
>
>
>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
>***
>
>
>
>. 
>
>--
>Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>endpoint security space. For insight on selecting the right partner to
>tackle endpoint security challenges, access the full report.
>http://p.sf.net/sfu/symantec-dev2dev
>___
>Matplotlib-users mailing list
>Matplotlib-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib multiple windows comparison

2013-03-12 Thread Sudheer Joseph
Thank You Phil,
                                  It did it correctly. TkAgg is good with 
interactive plotting.
with best regards,
Sudheer
From:Phil Elson 

To: Sudheer Joseph  
Cc: "matplotlib-users@lists.sourceforge.net" 
 
Sent: Tuesday, 12 March 2013 7:53 PM
Subject: Re: [Matplotlib-users] matplotlib multiple windows comparison
 

I hadn't spotted you were using the WxAgg backend too - this looks like the 
same bug that Brendan reported yesterday. 

The easiest solution would be to use another back-end until this is fixed. Do 
you have 'TkAgg' available? I currently do not have a wx installation to hand 
to try out any workarounds at the moment.

Regards,




On 12 March 2013 14:00, Sudheer Joseph  wrote:

Thank you Phil, 
>                            But I had tried it earlier after seeing a another 
>mail thread. I get command prompt but no figure pops up.
>
>
>In [3]: import matplotlib.pyplot as plt
>
>
>In [4]: plt.ion()
>
>
>In [5]: plt.plot(range(10))
>Out[5]: []
>
>
>In [6]: 
>
>
> Any way out??
>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: Phil Elson 
>To: Sudheer Joseph  
>Cc: "matplotlib-users@lists.sourceforge.net" 
> 
>Sent: Tuesday, 12 March 2013 3:08 PM
>Subject: Re: [Matplotlib-users] matplotlib multiple windows comparison
> 
>
>
>Hi Sudheer,
>
>Try the interactive mode 
>(http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.ion):
>
>
>>>> import matplotlib.pyplot as plt
>>>> plt.ion()
>>>> plt.plot(range(10))
>[]
>
>**a figure pops up here and hands you back the python command line**
>
>
>>>>
>
>
>Regards,
>
>
>
>
>
>
>
>On 12 March 2013 00:04, Sudheer Joseph  wrote:
>
>Dear experts,
>>Is there a way to get back to the prompt after a plot is made and displayed 
>>with out closing the plot?
>>The objective is to compare to plots or check some aspect about the plot made 
>>from the loaded variables. This is the standard behavior of matlab after 
>>plotting we get the prompt and we can make another plot if we want to compare 
>>2. I know there is subplot option but it will be of small size if I need to 
>>make a spatial map at to time intervals and compare. The detail of my 
>>matplotlib is below
>>
>>
>>
>>I use Ubuntu 12.04 64 bit version
>>and
>>
>>
>>In [3]: matplotlib.get_backend()
>>Out[3]: 'WXAgg'
>>
>>
>>In [4]: matplotlib.__version__
>>Out[4]: '1.2.0'
>>
>>
>>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
>>***
>>
>>
>>
>>. 
>>
>>--
>>Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>>Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>>endpoint security space. For insight on selecting the right partner to
>>tackle endpoint security challenges, access the full report.
>>http://p.sf.net/sfu/symantec-dev2dev
>>___
>>Matplotlib-users mailing list
>>Matplotlib-users@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
>
>--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] windrose

2013-03-19 Thread Sudheer Joseph
Thank you Paul,
                          I think the font issue is the mischief of Yahoo. I 
think I should send mail in text mode rather than html then the issue will not 
be there I hope. The signature is in normal text mode I saved. Please revert 
back if my mail shows font issues again so that I can try some thing different. 
However when I see it in Yahoo there is no issues though..
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: Paul Hobson 
>To: Sudheer Joseph  
>Cc: "matplotlib-users@lists.sourceforge.net" 
> 
>Sent: Tuesday, 19 March 2013 11:30 PM
>Subject: Re: [Matplotlib-users] windrose
> 
>
>On Tue, Mar 19, 2013 at 2:22 AM, Sudheer Joseph  
>wrote:
>
>Dear users,
>>                         Attached is a windrose diagram created by using 
>>https://sourceforge.net/project/showfiles.php?group_id=239240&package_id=290902
>> . Can any one tell me if the numbers displayed in the attached plot is % of 
>>wind directions in each category? or are they represent some other numbers?
>>
>>
>>http://3.bp.blogspot.com/_4ZlrnfU7IT8/TPxpftZGzfI/ADA/uq9cF3PTpR8/s1600/Wind_rose_plot.jpg
>> 
>
>
>Sudheer, 
>
>
>That's correct. The total length of the bars is the percentage of time that 
>the wind is blowing *from* that direction. 
>See my implementation here: 
>https://github.com/phobson/python-metar/blob/master/metar/graphics.py#L135
>
>
>Side note, you're emails are consistently formatted pretty strangely and can 
>be difficult to read. Perhaps stick with the same font that is in your email 
>signature?
>
>--
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_mar___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] windrose

2013-04-03 Thread Sudheer Joseph
Dear users,
          Below is a sample script I got from windrose pack. I would like to 
place 2 windroses side by side so that a comparison can be made. For example I 
have created additional variables ws1 wd1, and I would like that to be placed 
in the same row as a 1 row 2 column way. Any help in this regard will be great. 
(I tried subplot(221) subplot(222) but it do not work as the windrose uses new 
axis each time.)

from windrose import WindroseAxes
from matplotlib import pyplot as plt
import matplotlib.cm as cm
from numpy.random import random
from numpy import arange

#Create wind speed and direction variables
ws = random(500)*6
wd = random(500)*360
ws1 = random(500)*6
wd1 = random(500)*360
def new_axes():
    fig = plt.figure(figsize=(8, 8), dpi=80, facecolor='w', edgecolor='w')
    rect = [0.1, 0.1, 0.8, 0.8]
    ax = WindroseAxes(fig, rect, axisbg='w')
    fig.add_axes(ax)
    return ax

def set_legend(ax):
    l = ax.legend(axespad=-0.10)
    plt.setp(l.get_texts(), fontsize=8)

#windrose like a stacked histogram with normed (displayed in percent) results
ax = new_axes()
ax.bar(wd, ws, normed=True, opening=0.8, edgecolor='white')
set_legend(ax)

#Another stacked histogram representation, not normed, with bins limits
##print ax._info
plt.show()

 
*******
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
***

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] windrose

2013-04-04 Thread Sudheer Joseph
Thank you Scott,

Some how I am not getting the trick of the 
rect = [0.1, 0.1, 0.8, 0.8]

I tried 
rect1= [0.1,0.1,.4,.4]
and rect2=[.4,.4,.8,.8] 
but did not work
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
***


- Original Message -
> From: Scott Sinclair 
> To: "matplotlib-users@lists.sourceforge.net" 
> 
> Cc: 
> Sent: Thursday, 4 April 2013 12:37 PM
> Subject: Re: [Matplotlib-users] windrose
> 
> On 4 April 2013 06:45, Sudheer Joseph  wrote:
>>            Below is a sample script I got from windrose pack. I would like 
> to place 2 windroses side by side
> ...
>> 
>>  from windrose import WindroseAxes
>>  from matplotlib import pyplot as plt
> ...
>>  def new_axes():
>>      fig = plt.figure(figsize=(8, 8), dpi=80, facecolor='w', 
> edgecolor='w')
>>      rect = [0.1, 0.1, 0.8, 0.8]
>>      ax = WindroseAxes(fig, rect, axisbg='w')
>>      fig.add_axes(ax)
>>      return ax
> 
> I'm not familiar with the windrose package, but it looks like the rect
> parameter to WindroseAxes specifies the size of the generated axes in
> figure co-ordinates (see
> http://matplotlib.org/api/figure_api.html?highlight=add_axes#matplotlib.figure.Figure.add_axes).
> You should be able to pass in a different list of co-ordinates for
> each WindroseAxes to get side-by-side axes on the same figure...
> 
> Cheers,
> Scott
> 
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire 
> the most talented Cisco Certified professionals. Visit the 
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] windrose

2013-04-05 Thread Sudheer Joseph
Thank You Scott,
                I mistook the values  I assumed .1 to .8 as the total x size 
and expected half of it should provide me 2 half boxes.
thanks a lot for clarification.
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
***


- Original Message -
> From: Scott Sinclair 
> To: "matplotlib-users@lists.sourceforge.net" 
> 
> Cc: 
> Sent: Friday, 5 April 2013 6:36 PM
> Subject: Re: [Matplotlib-users] windrose
> 
> On 5 April 2013 03:54, Sudheer Joseph  wrote:
>>  Some how I am not getting the trick of the
>>  rect = [0.1, 0.1, 0.8, 0.8]
>> 
>>  I tried
>>  rect1= [0.1,0.1,.4,.4]
>>  and rect2=[.4,.4,.8,.8]
>>  but did not work
> 
> You don't say exactly what you did, and how it didn't work...
> 
> If you read 
> http://matplotlib.org/api/figure_api.html?highlight=add_axes#matplotlib.figure.Figure.add_axes
> it says "Add an axes at position rect [left, bottom, width,
> height]...". So you need to specify sensible values in rect1 and
> rect2.
> 
> The following works fine for me:
> 
> import matplotlib.pyplot as plt
> fig = plt.figure()
> rect1 = [0.1, 0.1, 0.4, 0.4]
> rect2 = [0.55, 0.1, 0.4, 0.4]
> ax1 = fig.add_axes(rect1)
> ax2 = fig.add_axes(rect2)
> ax1.plot(range(3))
> ax2.plot(range(4, 8))
> plt.show()
> 
> So I would expect that you can adapt your original code to something
> like the following (untested):
> 
> from windrose import WindroseAxes
> from matplotlib import pyplot as plt
> from numpy.random import random
> 
> def new_axes(fig, rect):
>     ax = WindroseAxes(fig, rect, axisbg='w')
>     fig.add_axes(ax)
>     return ax
> 
> def set_legend(ax):
>     l = ax.legend(axespad=-0.10)
>     plt.setp(l.get_texts(), fontsize=8)
> 
> #Create wind speed and direction variables
> ws = random(500)*6
> wd = random(500)*360
> ws1 = random(500)*6
> wd1 = random(500)*360
> 
> rect1 = [0.1, 0.1, 0.4, 0.4]
> rect2 = [0.55, 0.1, 0.4, 0.4]
> 
> fig = plt.figure(figsize=(8, 8), dpi=80, facecolor='w', 
> edgecolor='w')
> 
> ax1 = new_axes(fig, rect1)
> ax2 = new_axes(fig, rect2)
> 
> #windrose like a stacked histogram with normed (displayed in percent) results
> ax1.bar(wd, ws, normed=True, opening=0.8, edgecolor='white')
> set_legend(ax1)
> 
> #windrose like a stacked histogram with normed (displayed in percent) results
> ax2.bar(wd1, ws1, normed=True, opening=0.8, edgecolor='white')
> set_legend(ax2)
> 
> plt.show()
> 
> Cheers,
> Scott
> 
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire 
> the most talented Cisco Certified professionals. Visit the 
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] legend and text

2013-05-24 Thread Sudheer Joseph
Dear users, 
            I was trying to figure out 2 things for my below script. 
1) How do I put a correct legend in below plot for both the bar and line?
Also if I wanted add another set of bars(for comparison) side by side with a 
different color is ut possible with proper legend?

2) Is there a way to keep the position of text ( eg. 
ax.text(np.mean(x),20,"N-SAMPLES: "+str(npts))) in below plot independent of 
data based location-  but dependent on plot size ie npoints from left of the 
plot and mpoints from bottom of the plot? this way it is possible to keep it at 
same place even though I use data with different range. 
Please help

#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Created on Sun Dec  9 16:00:33 2012
@author: sjo"""
from matplotlib import pyplot as p
import sys
import os
import Image,ImageDraw
import numpy as np
in_file='HYC_SLA_MIN_AVISO_WEEKLY.dat'
print "filename =",in_file
stem=os.path.splitext(os.path.basename(in_file))[0]
#make a new figure
fig = p.figure()
img = Image.new("RGB", (300,300), "#FF")
draw = ImageDraw.Draw(img)

ax = fig.add_subplot(211)
yr=stem
xlab=os.path.join('SLA BINS-' + yr )
x=[  0.,   2.,   4.,   6.,   8.,  10.,  12.,  14.,  16.,  18.,  20.,
        22.,  24.,  26.,  28.,  30.]
y=[0.,24.078,20.158,  15.078,  10.872,   7.751,   5.542,
         4.023,   2.974,   2.225,   1.674,   1.269,   0.96 ,   0.734,
         0.555,   2.105]
z=[ 0.,  714200.,  597923.,  447222.,  322480.,  229896.,
        164373.,  119331.,   88223.,   66005.,   49658.,   37648.,
         28484.,   21779.,   16469.,   62448.]
yc=np.cumsum(y)
rng=[' 
','00-02','02-04','04-06','06-08','08-10','10-12','12-14','14-16','16-18','18-20','20-22','22-24','24-26','26-28','>28']
group_labels=rng
ax.set_xticks(x)
npts=np.sum(z)
# add a bar plot to the axis, ax.
fc1=ax.bar(x,y,width=1,align='center')
ax.set_xticklabels(group_labels,rotation='80')
ax.yaxis.grid(color='gray', linestyle='dashed')
ax.xaxis.grid(color='gray', linestyle='dashed')
ax.set_ylabel('% OF DATA POINTS',fontsize=12)
ax.set_xlabel(xlab,fontsize=12)
ax.text(np.mean(x),20,"N-SAMPLES: "+str(npts))
ax2 = ax.twinx()
csm1=ax2.plot(x, yc, 'r-')
ax2.set_ylabel('CUM % DATA',fontsize=12)
p.legend((fc1, csm1), ('histogram', 'cumulative'))
for tick in ax.xaxis.get_major_ticks():
                tick.label.set_fontsize(14)
for tick in ax.yaxis.get_major_ticks():
                tick.label.set_fontsize(14)
outf=os.path.join(stem +'.png')
p.show()
print outf

 
***
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
***

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] font for errorbar plot

2013-05-30 Thread Sudheer Joseph
Dear Users,
    Is there a way to set font size of error bar plot axis? I tried 
below one but get error that "'ErrorbarContainer' object has no attribute 
'xaxis'"
any help??

ax=plt.errorbar(y,x,err,label='STDV')
plt.xlim(0,110)
for tick in ax.xaxis.get_major_ticks():
    tick.label.set_fontsize(14)

 
*******
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
***--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] font for errorbar plot

2013-05-31 Thread Sudheer Joseph
Thank you both Paul and Eric the kind helping hands,
Sudheer--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] time series

2013-06-05 Thread Sudheer Joseph
Dear Users,
                 Is there any other method in matplotlib to get the plot 
similar to the one there in below link?

http://dsnra.jpl.nasa.gov/software/Python/scikits/lib.plotting.examples.html

I tried using this package but get below error.


sjo@sjo-ltp../hourly_rama~$ python ts.py 
Traceback (most recent call last):
  File "ts.py", line 12, in 
    fsp = fig.add_tsplot(111)
  File 
"/usr/local/lib/python2.7/dist-packages/scikits.timeseries-0.91.3-py2.7-linux-x86_64.egg/scikits/timeseries/lib/plotlib.py",
 line 1284, in add_tsplot
    return add_generic_subplot(self, *args, **kwargs)
  File 
"/usr/local/lib/python2.7/dist-packages/scikits.timeseries-0.91.3-py2.7-linux-x86_64.egg/scikits/timeseries/lib/plotlib.py",
 line 177, in add_generic_subplot
    if key in figure_instance._seen:
AttributeError: 'TimeSeriesFigure' object has no attribute '_seen'



import numpy as np
import matplotlib.pyplot as plt
import scikits.timeseries as ts
import scikits.timeseries.lib.plotlib as tpl
from scikits.timeseries.lib.moving_funcs import mov_average_expw

# generate some random data
data = np.cumprod(1 + np.random.normal(0, 1, 300)/100)
series = ts.time_series(data,
                       start_date=ts.Date(freq='M', year=1982, month=1))
fig = tpl.tsfigure()
fsp = fig.add_tsplot(111)
fsp.tsplot(series, '-', mov_average_expw(series, 40), 'r--')
plt.show()


 
***
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
***--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] time series

2013-06-05 Thread Sudheer Joseph
Thank you Verymuch for quick help,Paul.
with best regards,
Sudheer
From: Paul Hobson 
>To: Sudheer Joseph  
>Cc: "matplotlib-users@lists.sourceforge.net" 
> 
>Sent: Wednesday, 5 June 2013 9:57 PM
>Subject: Re: [Matplotlib-users] time series
> 
>
>
>On Wed, Jun 5, 2013 at 9:13 AM, Sudheer Joseph  
>wrote:
>
>Dear Users,
>>                 Is there any other method in matplotlib to get the plot 
>>similar to the one there in below link?
>>
>>
>>http://dsnra.jpl.nasa.gov/software/Python/scikits/lib.plotting.examples.html
>>I tried using this package but get below error.
>>
>>
>>sjo@sjo-ltp../hourly_rama~$ python ts.py 
>>Traceback (most recent call last):
>>  File "ts.py", line 12, in 
>>    fsp = fig.add_tsplot(111)
>>  File 
>>"/usr/local/lib/python2.7/dist-packages/scikits.timeseries-0.91.3-py2.7-linux-x86_64.egg/scikits/timeseries/lib/plotlib.py",
>> line 1284, in add_tsplot
>>    return add_generic_subplot(self, *args, **kwargs)
>>  File 
>>"/usr/local/lib/python2.7/dist-packages/scikits.timeseries-0.91.3-py2.7-linux-x86_64.egg/scikits/timeseries/lib/plotlib.py",
>> line 177, in add_generic_subplot
>>    if key in figure_instance._seen:
>>AttributeError: 'TimeSeriesFigure' object has no attribute '_seen'
>>
>>
>>
>>
>>
>>import numpy as np
>>import matplotlib.pyplot as plt
>>import scikits.timeseries as ts
>>import scikits.timeseries.lib.plotlib as tpl
>>from scikits.timeseries.lib.moving_funcs import mov_average_expw
>>
>>
>># generate some random data
>>data = np.cumprod(1 + np.random.normal(0, 1, 300)/100)
>>series = ts.time_series(data,
>>                       start_date=ts.Date(freq='M', year=1982, month=1))
>>fig = tpl.tsfigure()
>>fsp = fig.add_tsplot(111)
>>fsp.tsplot(series, '-', mov_average_expw(series, 40), 'r--')
>>plt.show()
>>
>>
>
>
>Pandas has excellent time series handling and plotting capabilities. 
>http://pandas.pydata.org/pandas-docs/stable/timeseries.html
>
>http://pandas.pydata.org/pandas-docs/stable/visualization.html
>
>
>--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] pandas ts.plot object

2013-06-06 Thread Sudheer Joseph


Dear members,
   Is there a way to add error bar to pandas ts.plot object?.
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
*** 

--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] time axis format

2013-06-10 Thread Sudheer Joseph

Thank you,
So there is no way to get J F M A etc with out reducing font size? We often 
need to make presentation in front of senior people who insist for bigger fonts.
With best regards,
Sudheer--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] time axis format

2013-06-10 Thread Sudheer Joseph


Thank you Eric and CM,
I have the below piece of code and added the new definition for minorLocs, but 
gets the below error. I believe I did not fully understand the concept you 
mentioned. 

minorLocs = mdates.MonthLocator(bymonth=[1,3,5,7,9,11],bymonthday=15)
minorFmt = mdates.DateFormatter('%b')

class MonthLetter(minorFmt):
    def __init__(self):
    DateFormatter.__init__(self, "%b")
    def __call__(*args):
    s = DateFormatter.__call__(*args)
    return s[:1]
minorFmt = MonthLetter()




    531 def viewlim_to_dt(self):
--> 532 vmin, vmax = self.axis.get_view_interval()
    533 return num2date(vmin, self.tz), num2date(vmax, self.tz)
    534 

AttributeError: 'NoneType' object has no attribute 'get_view_interva



From: Eric Firing 

To: matplotlib-users@lists.sourceforge.net 
>Sent: Tuesday, 11 June 2013 6:11 AM
>Subject: Re: [Matplotlib-users] time axis format
> 
>
>On 2013/06/10 2:08 PM, Sudheer Joseph wrote:
>>
>> Thank you,
>> So there is no way to get J F M A etc with out reducing font size? We
>> often need to make presentation in front of senior people who insist for
>> bigger fonts.
>> With best regards,
>> Sudheer
>
>One way is to subclass DateFormatter, e.g.,
>
>class MonthLetter(DateFormatter):
>     def __init__(self):
>         DateFormatter.__init__(self, "%b")
>
>     def __call__(*args):
>         s = DateFormatter.__call__(*args)
>         return s[:1]
>
>class MonthLetterYear(DateFormatter):
>     def __init__(self):
>         DateFormatter.__init__(self, "%b\n%Y")
>
>     def __call__(*args):
>         s = DateFormatter.__call__(*args)
>         return = s[:1] + s[3:]
>
>...
>
>majorFmt = MonthLetterYear()
>minorFmt = MonthLetter()
>
>
>Not tested, but something like that should work.
>
>Eric
>
>
>>
>>
>> 
>> *From: * Paul Hobson ;
>> *To: * Sudheer Joseph ;
>> *Cc: * matplotlib-users@lists.sourceforge.net
>> ;
>> *Subject: * Re: [Matplotlib-users] time axis format
>> *Sent: * Mon, Jun 10, 2013 8:08:18 PM
>>
>> In that case, I would use ax.tick_params(...) to make the font smaller.
>>
>>
>> On Sat, Jun 8, 2013 at 7:36 AM, Sudheer Joseph > > wrote:
>>
>>     Dear Paul,
>>                     The issue I am facing is like in the attached plot
>>     where the month naming get cluttered.
>>     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:* Sudheer Joseph >         >
>>         *To:* Paul Hobson >
>>         *Cc:* "matplotlib-users@lists.sourceforge.net
>>         " >         >
>>         *Sent:* Saturday, 8 June 2013 7:46 PM
>>
>>         *Subject:* Re: [Matplotlib-users] time axis format
>>
>>         Thank you Paul for the helping hand,
>>                                            However I was looking for
>>         slightly different solution like in the attached plots. I used
>>         ferret to do this based on the length of the time axis it chose
>>         the mode of labelling. for example in case of 2 year plot it
>>         made month labeling as j f m etc and in case of 1 year as there
>>         is enough space on x axis it made jan feb etc with single label
>>         of year.
>>
>>         In the attached python plot (ATser_RAMA_HYCOM_U_8n90e.png) every
>>         tick point is lablled for year, which I wanted to avoid and get
>>         plots similar to the first types thought it is not done
>>         automatically but at least manually.
>>
>>
>>         ***
>>         Sudheer Joseph
>>         Indian National Centre for Ocean Information Services
>>         Ministry of Earth Sciences, Govt. of 

Re: [Matplotlib-users] time axis format

2013-06-10 Thread Sudheer Joseph


Thank you CM,
  I tried to rotate the labels but only major ticks get rotated 
and when I try with minor ticks as below I get error

minlabels = ax.xaxis.get_minor_ticks()
p.xticks(minlabels,rotation=90)



--> 192 base =  float(dt.toordinal())
    193 if hasattr(dt, 'hour'):
    194 base += (dt.hour/HOURS_PER_DAY + dt.minute/MINUTES_PER_DAY +

AttributeError: 'XTick' object has no attribute 'toordinal'

From: C M 

To: matplotlib-users@lists.sourceforge.net 
>Sent: Tuesday, 11 June 2013 6:41 AM
>Subject: Re: [Matplotlib-users] time axis format
> 
>
>
>
>
>
>On Mon, Jun 10, 2013 at 8:08 PM, Sudheer Joseph  
>wrote:
>
>
>>Thank you,
>>So there is no way to get J F M A etc with out reducing font size?  
>
>I bet there a number of ways.  Offhand I don't know the one that, once I hear 
>about it, I will say, "D'oh, that's so easy" but I bet it exists.  But you 
>could modify the DateFormatter class.  It is set to return a strftime result 
>string.  Here is the function:
>
>def __call__(self, x, pos=0):
>    if x==0:
>    raise ValueError('DateFormatter found a value of x=0, which is an 
>illegal date.  This usually occurs because you have not informed the axis that 
>it is plotting dates, eg with ax.xaxis_date()')
>    dt = num2date(x, self.tz)
>    return self.strftime(dt, self.fmt)
>
>All you would have to do is change that last line to:
>
>    return self.strftime(dt, self.fmt)[0]
>
>To slice just the first letter of the month.
>
>So you could subclass DateFormatter to do this, since you probably don't want 
>to modify the actual DateFormatter class always in this way.
>
>Also, aside from the J F M A approach, you could just rotate the month's name, 
>and that will reduce crowding while keeping the month a little clearer (I 
>think "JAN FEB MAR APR" is more intuitive and pleasant to read on a graph).
>
>Che
>
>
> 
>We often need to make presentation in front of senior people who insist for 
>bigger fonts.
>>With best regards,
>>Sudheer 
>>
>>
>>
>>
>> From:  Paul Hobson ; 
>>To:  Sudheer Joseph ; 
>>Cc:  matplotlib-users@lists.sourceforge.net 
>>; 
>>
>>Subject:  Re: [Matplotlib-users] time axis format 
>>Sent:  Mon, Jun 10, 2013 8:08:18 PM 
>>
>>
>>
>>In that case, I would use ax.tick_params(...) to make the font smaller.
>>
>>
>>
>>On Sat, Jun 8, 2013 at 7:36 AM, Sudheer Joseph  
>>wrote:
>>
>>Dear Paul,
>>>   The issue I am facing is like in the attached plot where the 
>>>month naming get cluttered.
>>>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: Sudheer Joseph 
>>>>To: Paul Hobson  
>>>>Cc: "matplotlib-users@lists.sourceforge.net" 
>>>> 
>>>>Sent: Saturday, 8 June 2013 7:46 PM
>>>>
>>>>Subject: Re: [Matplotlib-users] time axis format
>>>> 
>>>>
>>>>
>>>>Thank you Paul for the helping hand,
>>>>  However I was looking for slightly 
>>>>different solution like in the attached plots. I used ferret to do this 
>>>>based on the length of the time axis it chose the mode of labelling. for 
>>>>example in case of 2 year plot it made month labeling as j f m etc and in 
>>>>case of 1 year as there is enough space on x axis it made jan feb etc with 
>>>>single label of year. 
>>>>
>>>>In the attached python plot (ATser_RAMA_HYCOM_U_8n90e.png) every tick point 
>>>>is lablled for year, which I wanted to avoid and get plots similar to the 
>>>>first types thought it is not done automatically but at least
manually.
>>>>
&

Re: [Matplotlib-users] time axis format

2013-06-10 Thread Sudheer Joseph
Got a solution as below

p.setp(ax.xaxis.get_minorticklabels(), rotation=90 )
but still to understand how to get single letter from month name!

with best regards,
Sudheer




- Original Message -
> From: Sudheer Joseph 
> To: Eric Firing ; 
> "matplotlib-users@lists.sourceforge.net" 
> 
> Cc: 
> Sent: Tuesday, 11 June 2013 9:46 AM
> Subject: Re: [Matplotlib-users] time axis format
> 
> 
> 
> Thank you Eric and CM,
> I have the below piece of code and added the new definition for minorLocs, 
> but 
> gets the below error. I believe I did not fully understand the concept you 
> mentioned. 
> 
> minorLocs = mdates.MonthLocator(bymonth=[1,3,5,7,9,11],bymonthday=15)
> minorFmt = mdates.DateFormatter('%b')
> 
> class MonthLetter(minorFmt):
>     def __init__(self):
>     DateFormatter.__init__(self, "%b")
>     def __call__(*args):
>     s = DateFormatter.__call__(*args)
>     return s[:1]
> minorFmt = MonthLetter()
> 
> 
> 
> 
>     531 def viewlim_to_dt(self):
> --> 532 vmin, vmax = self.axis.get_view_interval()
>     533 return num2date(vmin, self.tz), num2date(vmax, self.tz)
>     534 
> 
> AttributeError: 'NoneType' object has no attribute 'get_view_interva
> 
> 
> 
> From: Eric Firing 
> 
> To: matplotlib-users@lists.sourceforge.net 
>> Sent: Tuesday, 11 June 2013 6:11 AM
>> Subject: Re: [Matplotlib-users] time axis format
>> 
>> 
>> On 2013/06/10 2:08 PM, Sudheer Joseph wrote:
>>> 
>>>  Thank you,
>>>  So there is no way to get J F M A etc with out reducing font size? We
>>>  often need to make presentation in front of senior people who insist 
> for
>>>  bigger fonts.
>>>  With best regards,
>>>  Sudheer
>> 
>> One way is to subclass DateFormatter, e.g.,
>> 
>> class MonthLetter(DateFormatter):
>>      def __init__(self):
>>          DateFormatter.__init__(self, "%b")
>> 
>>      def __call__(*args):
>>          s = DateFormatter.__call__(*args)
>>          return s[:1]
>> 
>> class MonthLetterYear(DateFormatter):
>>      def __init__(self):
>>          DateFormatter.__init__(self, "%b\n%Y")
>> 
>>      def __call__(*args):
>>          s = DateFormatter.__call__(*args)
>>          return = s[:1] + s[3:]
>> 
>> ...
>> 
>> majorFmt = MonthLetterYear()
>> minorFmt = MonthLetter()
>> 
>> 
>> Not tested, but something like that should work.
>> 
>> Eric
>> 
>> 
>>> 
>>> 
>>> 
> 
>>>  *From: * Paul Hobson ;
>>>  *To: * Sudheer Joseph ;
>>>  *Cc: * matplotlib-users@lists.sourceforge.net
>>>  ;
>>>  *Subject: * Re: [Matplotlib-users] time axis format
>>>  *Sent: * Mon, Jun 10, 2013 8:08:18 PM
>>> 
>>>  In that case, I would use ax.tick_params(...) to make the font smaller.
>>> 
>>> 
>>>  On Sat, Jun 8, 2013 at 7:36 AM, Sudheer Joseph 
> >>  > wrote:
>>> 
>>>      Dear Paul,
>>>                      The issue I am facing is like in the attached plot
>>>      where the month naming get cluttered.
>>>      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:* Sudheer Joseph >>          >
>>>          *To:* Paul Hobson  >
>>>          *Cc:* "matplotlib-users@lists.sourceforge.net
>>>          " 
> >>          >
>>>          *Sent:* Saturday, 8 June 2013 7:46 PM
>>> 
>>>          *Subject:* Re: [Matplotlib-users] time axis format
>>> 
>>>          Thank you Paul for the helping hand,
>>

Re: [Matplotlib-users] time axis format

2013-06-11 Thread Sudheer Joseph
Thank you very much Eric for your valuable suggestions and explanations, now I 
could follow what exactly was wrong with my way of doing it, I got the result 
correctly.
thanks a lot
with best regards,
Sudheer



- Original Message -
> From: Eric Firing 
> To: Sudheer Joseph 
> Cc: "matplotlib-users@lists.sourceforge.net" 
> 
> Sent: Tuesday, 11 June 2013 12:53 PM
> Subject: Re: [Matplotlib-users] time axis format
> 
> On 2013/06/10 6:16 PM, Sudheer Joseph wrote:
>> 
>> 
>>  Thank you Eric and CM,
>>  I have the below piece of code and added the new definition for minorLocs, 
> but gets the below error. I believe I did not fully understand the concept 
> you 
> mentioned.
>> 
> 
> Try it again, please, exactly as I wrote it.
> 
>>  minorLocs = mdates.MonthLocator(bymonth=[1,3,5,7,9,11],bymonthday=15)
> 
> 
> Delete the following line:
>>  minorFmt = mdates.DateFormatter('%b')
>> 
> 
> Restore the following to what I wrote; your change to the first line is 
> wrong.
>>  class MonthLetter(minorFmt):
>>       def __init__(self):
>>           DateFormatter.__init__(self, "%b")
>>       def __call__(*args):
>>           s = DateFormatter.__call__(*args)
>>           return s[:1]
>>  minorFmt = MonthLetter()
>> 
>> 
>> 
>> 
>>       531     def viewlim_to_dt(self):
>>  --> 532         vmin, vmax = self.axis.get_view_interval()
>>       533         return num2date(vmin, self.tz), num2date(vmax, self.tz)
>>       534
>> 
>>  AttributeError: 'NoneType' object has no attribute 
> 'get_view_interva
>> 
>> 
>> 
>>  From: Eric Firing 
>> 
>>  To: matplotlib-users@lists.sourceforge.net
>>>  Sent: Tuesday, 11 June 2013 6:11 AM
>>>  Subject: Re: [Matplotlib-users] time axis format
>>> 
>>> 
>>>  On 2013/06/10 2:08 PM, Sudheer Joseph wrote:
>>>> 
>>>>  Thank you,
>>>>  So there is no way to get J F M A etc with out reducing font size? 
> We
>>>>  often need to make presentation in front of senior people who 
> insist for
>>>>  bigger fonts.
>>>>  With best regards,
>>>>  Sudheer
>>> 
>>>  One way is to subclass DateFormatter, e.g.,
>>> 
>>>  class MonthLetter(DateFormatter):
>>>        def __init__(self):
>>>            DateFormatter.__init__(self, "%b")
>>> 
>>>        def __call__(*args):
>>>            s = DateFormatter.__call__(*args)
>>>            return s[:1]
>>> 
>>>  class MonthLetterYear(DateFormatter):
>>>        def __init__(self):
>>>            DateFormatter.__init__(self, "%b\n%Y")
>>> 
>>>        def __call__(*args):
>>>            s = DateFormatter.__call__(*args)
>>>            return = s[:1] + s[3:]
>>> 
>>>  ...
>>> 
>>>  majorFmt = MonthLetterYear()
>>>  minorFmt = MonthLetter()
>>> 
>>> 
>>>  Not tested, but something like that should work.
>>> 
>>>  Eric
>>> 
>>> 
>>>> 
>>>> 
>>>> 
> --------
>>>>  *From: * Paul Hobson ;
>>>>  *To: * Sudheer Joseph ;
>>>>  *Cc: * matplotlib-users@lists.sourceforge.net
>>>>  ;
>>>>  *Subject: * Re: [Matplotlib-users] time axis format
>>>>  *Sent: * Mon, Jun 10, 2013 8:08:18 PM
>>>> 
>>>>  In that case, I would use ax.tick_params(...) to make the font 
> smaller.
>>>> 
>>>> 
>>>>  On Sat, Jun 8, 2013 at 7:36 AM, Sudheer Joseph 
> >>>  > wrote:
>>>> 
>>>>        Dear Paul,
>>>>                        The issue I am facing is like in the attached 
> plot
>>>>        where the month naming get cluttered.
>>>>        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)
>>

[Matplotlib-users] savefig

2013-06-12 Thread Sudheer Joseph
Dear experts,
I start ipython in ipython qtconsole --pylab=inline mode and make a plot. But 
if I use savefig('fig.png') the figure do not get saved instead I get a blank 
page.

 I also tried img.save('fig.png',png) but no use. Is there a way out or I need 
to do this after quitting and restarting in normal mode each time I want to 
save?

ipython qtconsole --pylab=inline
 

In [93]: ts.plot()
Out[93]: 

*******
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
***

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] savefig

2013-06-13 Thread Sudheer Joseph
Thank you,
I don't see a way other than starting in normal mode as the moment I type 
plot command it get displayed and I don't need to do a show command. 
With best regards sudheer--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] savefig

2013-06-13 Thread Sudheer Joseph
Thank you Roban,
 Your that trick worked,
if I keep ts.plot(), savefig('ts.pdf') both on same line it works!

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: Roban Kramer 
>To: sudheer.jos...@yahoo.com 
>Cc: Paul Hobson ; "matplotlib-users@lists.sourceforge.net" 
> 
>Sent: Thursday, 13 June 2013 8:12 PM
>Subject: Re: [Matplotlib-users] savefig
> 
>
>
>savefig works for me when I put both the plotting commands and the savefig 
>call in the *same* code cell.
>
>
>
>On Thu, Jun 13, 2013 at 10:31 AM, Sudheer Joseph  
>wrote:
>
>Thank you,
>>I don't see a way other than starting in normal mode as the moment I type 
>>plot command it get displayed and I don't need to do a show command. 
>>With best regards sudheer 
>>
>>
>>
>>
>> From:  Paul Hobson ; 
>>To:  Sudheer Joseph ; 
>>Cc:  matplotlib-users@lists.sourceforge.net 
>>; 
>>Subject:  Re: [Matplotlib-users] savefig 
>>Sent:  Thu, Jun 13, 2013 2:23:05 PM 
>>
>>
>>
>>
>>
>>On Wed, Jun 12, 2013 at 10:28 PM, Sudheer Joseph  
>>wrote:
>>
>>Dear experts,
>>>I start ipython in ipython qtconsole --pylab=inline mode and make a plot. 
>>>But if I use savefig('fig.png') the figure do not get saved instead I get a 
>>>blank page.
>>>
>>> I also tried img.save('fig.png',png) but no use. Is there a way out or I 
>>>need to do this after quitting and restarting in normal mode each time I 
>>>want to save?
>>>
>>>ipython qtconsole --pylab=inline
>>>
>>>
>>>In [93]: ts.plot()
>>>Out[93]: 
>>>
>>
>>
>>The fig is destroyed after it has been displayed by the console. Try saving 
>>it before it gets shown.
>>-p  
>>--
>>This SF.net email is sponsored by Windows:
>>
>>Build for Windows Store.
>>
>>http://p.sf.net/sfu/windows-dev2dev
>>___
>>Matplotlib-users mailing list
>>Matplotlib-users@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
>
> 

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] savefig

2013-06-13 Thread Sudheer Joseph
Thank you,
I don't see a way other than starting in normal mode as the moment I type 
plot command it get displayed and I don't need to do a show command. 
With best regards sudheer--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] savefig

2013-06-15 Thread Sudheer Joseph
Thank you,
 This is some thing new, which I learned.
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: Paul Hobson 
>To: Sudheer Joseph  
>Cc: "matplotlib-users@lists.sourceforge.net" 
> 
>Sent: Friday, 14 June 2013 9:05 PM
>Subject: Re: [Matplotlib-users] savefig
> 
>
>
>On Thu, Jun 13, 2013 at 11:40 PM, Sudheer Joseph  
>wrote:
>
>Thank you,
>>I don't see a way other than starting in normal mode as the moment I type 
>>plot command it get displayed and I don't need to do a show command. 
>> 
>
>
>In the qtconsole, you can enter multi-line mode with crtl+enter.
>
>
>
>
>--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] ipython with pylab inline and normal

2013-06-27 Thread Sudheer Joseph
 Dear experts,

 I have been making some scripts to do some routine 
plotting 
 of model results with ipython qtconsole --colors=linux --pylab=inline mode for 
 fine tuning and then used the same script for running from command line  
ipython 
 alt_hyc_trak.py, the results in plot gets messed up 
 It appears the setting I did by using below commands are different for inline 
 mode and ipython.
 
 plt.subplots_adjust(hspace = -.15,wspace=.1)  
 
 
Is there a way to set the properties of plot acceptable for both.
I am attaching both figures here.
https://www.dropbox.com/s/heeadhkf9u2czns/ipython_cmdline.png
https://www.dropbox.com/s/5hsm6yver152h11/inline_mode.png

 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
 *** 


--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Hovemuller Diagram

2013-07-11 Thread Sudheer Joseph
Dear All,
 Is there a straight forward way to get 
Hovemuller diagram or longitude/latitude vs time plot using matplotlib. 
If possible please send me some examples if any one know it existing in 
web 

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
***

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Hovemuller Diagram

2013-07-11 Thread Sudheer Joseph
Thank you Signell,
   I was looking for better looking labels as well as a 
solution with in matplotlib without needing to install additional packages. I 
had some trouble with some libraries while trying to install iris. I was 
wondering if it is possible with in matplotlib with out additional 
installations using the features of basemap package.
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
***


- Original Message -
> From: "Signell, Richard" 
> To: Sudheer Joseph 
> Cc: 
> Sent: Friday, 12 July 2013 12:41 AM
> Subject: Re: [Matplotlib-users] Hovemuller Diagram
> 
> I don't think I understand your problem.  Are you just trying to get
> nicer looking tick labels?
> 
> 
> On Thu, Jul 11, 2013 at 11:03 AM, Sudheer Joseph
>  wrote:
>>  Thanks Signell,
>>                        I had seen it but it is not the correct type with 
> Longitude axis, it is having just numbers on x axis I expect axis like the 
> ones 
> we get from basemap package.
>>  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
>>  ***
>> 
>> 
>>  - Original Message -
>>>  From: "Signell, Richard" 
>>>  To: Sudheer Joseph 
>>>  Cc:
>>>  Sent: Thursday, 11 July 2013 7:20 PM
>>>  Subject: Re: [Matplotlib-users] Hovemuller Diagram
>>> 
>>>  http://scitools.org.uk/iris/docs/v1.0/examples/graphics/hovmoller.html
>>> 
>>>  On Thu, Jul 11, 2013 at 5:40 AM, Sudheer Joseph
>>>   wrote:
>>>>   Dear All,
>>>>                Is there a straight forward way to get
>>>>   Hovemuller diagram or longitude/latitude vs time plot using 
> matplotlib.
>>>>   If possible please send me some examples if any one know it 
> existing in
>>>>   web
>>>> 
>>>>   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
>>>>   ***
>>>> 
>>>> 
>>> 
> --
>>>>   See everything from the browser to the database with AppDynamics
>>>>   Get end-to-end visibility with application monitoring from 
> AppDynamics
>>>>   Isolate bottlenecks and diagnose root cause in seconds.
>>>>   Start your free trial of AppDynamics Pro today!
>>>> 
>>> 
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>>>>   ___
>>>>   Matplotlib-users mailing list
>>>>   Matplotlib-users@lists.sourceforge.net
>>>>   https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>> 
>>> 
>>> 
>>>  --
>>>  Dr. Richard P. Signell   (508) 457-2229
>>>  USGS, 384 Woods Hole Rd.
>>>  Woods Hole, MA 02543-1598
>>> 
> 
> 
> 
> -- 
> Dr. Richard P. Signell   (508) 457-2229
> USGS, 384 Woods Hole Rd.
> Woods Hole, MA 02543-1598
> 

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Sudheer Joseph


Thank you Phil,
   Which repository I need to add to source list which 
allow me to install iris with apt-get install python-iris. I do not have it in 
my default lists.
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: Phil Elson 
>To: Sudheer Joseph  
>Cc: "Signell, Richard" ; 
>"matplotlib-users@lists.sourceforge.net" 
> 
>Sent: Friday, 12 July 2013 1:21 PM
>Subject: Re: [Matplotlib-users] Hovemuller Diagram
> 
>
>
>The balance of time to install vs time to re-implement a feature is only 
>something you can decide, but i suspect it is worth your while getting iris 
>installed (I would say that as an iris developer though). The installation 
>process is only going to get easier over time, for instance last week we added 
>a PPA so that with the necessary repos added you would be able to "apt-get 
>install python-iris" on an Ubuntu machine - for other installation guides 
>there is a repository of recipes ( 
>https://github.com/SciTools/installation-recipes ).
>As for achieving this without iris, it is perfectly feasible. You just need to 
>contourf your data with the longitude as your x coordinate and the date times 
>as your y coordinate. From memory you might also need to tell matplotlib that 
>the y coordinate is date/time (I think that is a mpl bug that ajdawson has 
>recently addressed). Obviously, basemap is not needed as you are not drawing a 
>longitude/latitude plot but a longitude/time or latitude/time one.
>HTH,
>Phil
>
>
>
>On 11 July 2013 19:06, Sudheer Joseph  wrote:
>
>Thank you Signell,
>>   I was looking for better looking labels as well as a 
>>solution with in matplotlib without needing to install additional packages. I 
>>had some trouble with some libraries while trying to install iris. I was 
>>wondering if it is possible with in matplotlib with out additional 
>>installations using the features of basemap package.
>>
>>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
>>***
>>
>>
>>- Original Message -
>>> From: "Signell, Richard" 
>>> To: Sudheer Joseph 
>>> Cc:
>>> Sent: Friday, 12 July 2013 12:41 AM
>>> Subject: Re: [Matplotlib-users] Hovemuller Diagram
>>>
>>> I don't think I understand your problem.  Are you just trying to get
>>> nicer looking tick labels?
>>>
>>>
>>> On Thu, Jul 11, 2013 at 11:03 AM, Sudheer Joseph
>>>  wrote:
>>>>  Thanks Signell,
>>>>                        I had seen it but it is not the correct type with
>>> Longitude axis, it is having just numbers on x axis I expect axis like the 
>>> ones
>>> we get from basemap package.
>>
>>>>  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
>>>>  ***
>>>>
>>>>
>>
>

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Sudheer Joseph
Hi,

I did not understand 1d mentioned by you? for a diagram like this 2D is must as 
it need longitude /latitude and also time
with best regards,
Sudheer

From: Andrew Dawson 

To: Phil Elson  
>Cc: Sudheer Joseph ; 
>"matplotlib-users@lists.sourceforge.net" 
> 
>Sent: Friday, 12 July 2013 1:28 PM
>Subject: Re: [Matplotlib-users] Hovemuller Diagram
> 
>
>
>As long as you use contour or contourf and your coordinates are 1d you should 
>be able to do this no problem, just like Phil said. However, there is a bug 
>that will prevent you from using pcolormesh or pcolor unfortunately.
>
>
>Andrew
>
>
>
>On 12 July 2013 08:51, Phil Elson  wrote:
>
>The balance of time to install vs time to re-implement a feature is only 
>something you can decide, but i suspect it is worth your while getting iris 
>installed (I would say that as an iris developer though). The installation 
>process is only going to get easier over time, for instance last week we added 
>a PPA so that with the necessary repos added you would be able to "apt-get 
>install python-iris" on an Ubuntu machine - for other installation guides 
>there is a repository of recipes ( 
>https://github.com/SciTools/installation-recipes ).
>>As for achieving this without iris, it is perfectly feasible. You just need 
>>to contourf your data with the longitude as your x coordinate and the date 
>>times as your y coordinate. From memory you might also need to tell 
>>matplotlib that the y coordinate is date/time (I think that is a mpl bug that 
>>ajdawson has recently addressed). Obviously, basemap is not needed as you are 
>>not drawing a longitude/latitude plot but a longitude/time or latitude/time 
>>one.
>>HTH,
>>Phil
>>
>>
>>
>>On 11 July 2013 19:06, Sudheer Joseph  wrote:
>>
>>Thank you Signell,
>>>   I was looking for better looking labels as well as a 
>>>solution with in matplotlib without needing to install additional packages. 
>>>I had some trouble with some libraries while trying to install iris. I was 
>>>wondering if it is possible with in matplotlib with out additional 
>>>installations using the features of basemap package.
>>>
>>>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
>>>*******
>>>
>>>
>>>- Original Message -
>>>> From: "Signell, Richard" 
>>>> To: Sudheer Joseph 
>>>> Cc:
>>>> Sent: Friday, 12 July 2013 12:41 AM
>>>> Subject: Re: [Matplotlib-users] Hovemuller Diagram
>>>>
>>>> I don't think I understand your problem.  Are you just trying to get
>>>> nicer looking tick labels?
>>>>
>>>>
>>>> On Thu, Jul 11, 2013 at 11:03 AM, Sudheer Joseph
>>>>  wrote:
>>>>>  Thanks Signell,
>>>>>                        I had seen it but it is not the correct type with
>>>> Longitude axis, it is having just numbers on x axis I expect axis like the 
>>>> ones
>>>> we get from basemap package.
>>>
>>>>>  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
>>>>>  ***
>>>>>
>>>>>
>>>
>>>>>  - 

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Sudheer Joseph
Finally I got installed by following link below
http://osgeo-org.1560.x6.nabble.com/Iris-draft-installer-td5061171.html


 
***
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
***


- Original Message -
> From: Sudheer Joseph 
> To: Phil Elson 
> Cc: "matplotlib-users@lists.sourceforge.net" 
> 
> Sent: Saturday, 13 July 2013 6:49 AM
> Subject: Re: [Matplotlib-users] Hovemuller Diagram
> 
> 
> 
> Thank you Phil,
>    Which repository I need to add to source list which 
> allow 
> me to install iris with apt-get install python-iris. I do not have it in my 
> default lists.
> 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: Phil Elson 
>> To: Sudheer Joseph  
>> Cc: "Signell, Richard" ; 
> "matplotlib-users@lists.sourceforge.net" 
>  
>> Sent: Friday, 12 July 2013 1:21 PM
>> Subject: Re: [Matplotlib-users] Hovemuller Diagram
>> 
>> 
>> 
>> The balance of time to install vs time to re-implement a feature is only 
> something you can decide, but i suspect it is worth your while getting iris 
> installed (I would say that as an iris developer though). The installation 
> process is only going to get easier over time, for instance last week we 
> added a 
> PPA so that with the necessary repos added you would be able to "apt-get 
> install python-iris" on an Ubuntu machine - for other installation guides 
> there is a repository of recipes 
> ( https://github.com/SciTools/installation-recipes ).
>> As for achieving this without iris, it is perfectly feasible. You just need 
> to contourf your data with the longitude as your x coordinate and the date 
> times 
> as your y coordinate. From memory you might also need to tell matplotlib that 
> the y coordinate is date/time (I think that is a mpl bug that ajdawson has 
> recently addressed). Obviously, basemap is not needed as you are not drawing 
> a 
> longitude/latitude plot but a longitude/time or latitude/time one.
>> HTH,
>> Phil
>> 
>> 
>> 
>> On 11 July 2013 19:06, Sudheer Joseph  
> wrote:
>> 
>> Thank you Signell,
>>>    I was looking for better looking labels as well 
> as a solution with in matplotlib without needing to install additional 
> packages. 
> I had some trouble with some libraries while trying to install iris. I was 
> wondering if it is possible with in matplotlib with out additional 
> installations 
> using the features of basemap package.
>>> 
>>> 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
>>> ***
>>> 
>>> 
>>> - Original Message -
>>>>  From: "Signell, Richard" 
>>>>  To: Sudheer Joseph 
>>>>  Cc:
>>>>  Sent: Friday, 12 July 2013 12:41 AM
>>>>  Subject: Re: [Matplotlib-users] Hovemuller Diagram
>>>> 
>>>>  I don't think I understand your problem.  Are you just trying 
> to get
>>>>  nicer looking t