You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
1
(4) |
2
(17) |
3
(9) |
4
(5) |
5
(5) |
6
(2) |
7
|
8
(7) |
9
(6) |
10
(1) |
11
(4) |
12
(12) |
13
(7) |
14
(1) |
15
|
16
|
17
(12) |
18
(11) |
19
(6) |
20
(6) |
21
(2) |
22
(5) |
23
(1) |
24
(4) |
25
(6) |
26
(3) |
27
(2) |
28
|
29
(2) |
30
(12) |
31
(8) |
|
|
|
From: Michael D. <md...@st...> - 2013-07-17 13:05:08
|
This patch doesn't make a whole lot of sense to me. get_name should work just fine if self._family is None, and indeed it does in my own testing: ``` from matplotlib import font_manager f = font_manager.FontProperties(None) print f._family print f.get_family() print f.get_name() ``` So I'd much prefer to get to the bottom of the root cause of this problem than patch it unnecessarily in this way. Any idea what that is? Mike On 07/08/2013 10:57 AM, Nicolas Mailhot wrote: > Hi, > > In matplotlib 1.2.1, the get_name function is not garding against none > self (unlike other functions); Unfortunately it seems I have a workload > that makes matplotlib call get_name with None (wasn't the case in 1.2.0). > I couldn't isolate the exact trigger, when I reduce the volume of data > processed the problem goes away so I have to simple shareable reproducer. > > Anyway, the following patch makes it all work for me, could it (or > something similar) be merged? > > diff -uNr matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py > matplotlib-1.2.1/lib/matplotlib/font_manager.py > --- matplotlib-1.2.1.orig/lib/matplotlib/font_manager.py 2013-03-26 > 14:04:37.000000000 +0100 > +++ matplotlib-1.2.1/lib/matplotlib/font_manager.py 2013-07-08 > 14:49:37.791845661 +0200 > @@ -721,6 +721,8 @@ > Return the name of the font that best matches the font > properties. > """ > + if self._family is None: > + return rcParams['font.family'] > return ft2font.FT2Font(str(findfont(self))).family_name > > def get_style(self): > > Regards, > |
From: Michael D. <md...@st...> - 2013-07-17 13:00:54
|
Can you please provide a completely standalone example? The following code has undefined variables etc. Mike On 07/08/2013 10:49 AM, Nicolas Mailhot wrote: > subplot.set_xticks([dd.monthstart(m) for m in months]) > subplot.set_xticks([w.gmticks() for w in weeks], minor=True) > subplot.set_xticklabels([]) > plt.xlim(dd.monthstart(min(months)),dd.monthend(max(months))) > > subplot1 = subplot.twiny() > mmonths = [m for i,m in enumerate(months) > if operator.mod(i,1+(len(months)-1)/12) == 0] > subplot1.set_xticks([dd.monthmiddle(m) for m in mmonths]) > subplot1.set_xticklabels(mmonths) > subplot1.tick_params(labelsize='6.5',labelbottom=True, labeltop=False) > plt.xlim(dd.monthstart(min(months)),dd.monthend(max(months))) > > subplot2 = subplot.twiny() > mweeks = [w for i,w in enumerate(weeks) > if operator.mod(i,1+(len(weeks)-1)/53) == 0] > subplot2.set_xticks([dd.weekmiddle(w) for w in mweeks]) > subplot2.set_xticklabels([w.iso_week[1] for w in mweeks]) > subplot2.tick_params(labelsize='5',labelbottom=False, labeltop=True,pad=3) > plt.xlim(dd.monthstart(min(months)),dd.monthend(max(months))) > > subplot2.xaxis.set_ticks_position('none') > subplot1.xaxis.set_ticks_position('none') > subplot.xaxis.set_ticks_position('both') |
From: Michael D. <md...@st...> - 2013-07-17 12:29:38
|
There is nothing available to push points -- matplotlib uses Numpy arrays internally for the data, and they can not be (efficiently) resized. I would try implementing this before assuming it's too slow. Mike On 07/05/2013 12:02 PM, v0idnull wrote: > Yes, but this is where I am failing. I don't have the code with me > right now but I can explain it: > > I get a new number every 2000 milliseconds, and I want to update the > graph say, every 50 milliseconds, and keep a minute of history visible > in the graph. > > So that's 30 x-axis ticks. > > But if I want to draw this out smoothly, I need 40 more ticks per > update interval. I have five lines I want to show, so every 50ms, 600 > points need to be plotted out. > > Now, my proof of concept code is just working with arrays in a sort of > FIFO queue, I haven't actually tried to plug those arrays into > matplotlib, but it seems like replotting 600 points is a lot of work. > > Maybe I am over reacting? Or is there some feature of matplotlib that > allows me to push data onto a plot instead of replotting all points? > > I dunno, I'm not confident in my approach. I seek inspiration. > > thanks, > --alex > > This means that every 50ms, 600 points need to be updated. > > On 13-07-04 05:11 PM, Michael Droettboom wrote: >> I see -- you want to basically interpolate between points? I don't >> think there's anything built in to matplotlib to do that, but you >> could always do that interpolation outside and just update the graph >> more often. >> >> Mike >> >> On 07/04/2013 04:28 PM, v0idnull wrote: >>> eh.... >>> >>> Let me explain my problem in a different way: >>> >>> Every two seconds I get a value from a service. Let's say I over 8 >>> seconds I get 1, 5, 10, 5 as values. >>> >>> So if my application updates the graph every two seconds, this will >>> look choppy and ugly. This is because every two seconds, an entire >>> line is added onto the graph between the two points. >>> >>> Imagine if I could control the drawing of said line though. If I >>> could draw the individual pixels of the line every couple of ticks >>> instead of just dumping a line in every two seconds, I will end up >>> with a nice smooth animation. It may not be 100% real time anymore, >>> but my focus on this personal project of mine is vanity, not >>> practicality ;) >>> >>> I hope this better explains what I am trying to accomplish... >>> >>> Thanks, >>> --alex >>> >>> On 13-07-04 04:09 PM, Michael Droettboom wrote: >>>> Have you looked at the simple_anim.py example -- other than the >>>> networking piece, it seems to do what you describe, and it's pretty >>>> fast. Maybe start from that and make changes until it gets slow in >>>> order to determine where the slowness comes from...? >>>> >>>> Mike >>>> >>>> On 07/03/2013 09:19 PM, v0idnull wrote: >>>>> I am receiving a number from a server every two seconds. I would >>>>> like to plot this number.out over time for the past say... 30 polls. >>>>> >>>>> Would it be possible to use... Anything, to produce a smooth >>>>> animation of the plot line getting drawn? As it stands now the >>>>> animation is well... Quite choppy. ;) >>>>> >>>>> I'm using pygame currently to render my graphs on this full screen >>>>> application I'm making just for my self. I am not bound to it >>>>> though if there are better linux-only things out there. >>>>> >>>>> Thanks in advance, >>>>> --alex >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> This SF.net email is sponsored by Windows: >>>>> >>>>> Build for Windows Store. >>>>> >>>>> http://p.sf.net/sfu/windows-dev2dev >>>>> >>>>> >>>>> _______________________________________________ >>>>> Matplotlib-users mailing list >>>>> Mat...@li... >>>>> 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 >>>> >>>> !DSPAM:51d5d60416102691037314! >>>> >>>> >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>>> >>>> !DSPAM:51d5d60416102691037314! >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> >>> >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> !DSPAM:51d5e4c116101841011479! >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> >> !DSPAM:51d5e4c116101841011479! >> >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> !DSPAM:51d5e4c116101841011479! > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Eric F. <ef...@ha...> - 2013-07-17 06:05:50
|
On 2013/07/16 5:50 PM, K.-Michael Aye wrote: > Hi! > > I have just run an old code that I believe was working before on OSX. > I am trying this with matplotlib 1.2.1 on an OSX EPD running Python 2.7.3 It works for me with OSX Mountain Lion and mpl 1.2.1 compiled from source. I don't think this is fundamentally a problem with cbook.report_memory. Eric > > > In [1]: from matplotlib.pylab import * > > In [2]: import matplotlib.cbook as cbook > > In [3]: data = ones((1500,1500,3)) > > In [4]: imshow(data) > Out[4]: <matplotlib.image.AxesImage at 0x109d343d0> > > In [5]: ax = gca() > > In [6]: print cbook.report_memory() > --------------------------------------------------------------------------- > IOError Traceback (most recent call last) > <ipython-input-6-88a73a5ab996> in <module>() > ----> 1 print cbook.report_memory() > > /Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/matplotlib/cbook.py > in report_memory(i) > 1210 elif sys.platform.startswith('darwin'): > 1211 a2 = Popen('ps -p %d -o rss,vsz' % pid, shell=True, > -> 1212 stdout=PIPE).stdout.readlines() > 1213 mem = int(a2[1].split()[0]) > 1214 elif sys.platform.startswith('win'): > > IOError: [Errno 4] Interrupted system call > > First I thought, maybe this doesn't run in IPython for a reason, but > trying it as a script also fails: > > (general_dev+)[maye@lunatic ~/Dropbox/src/pymars]$ python imshow_test.py > Traceback (most recent call last): > File "imshow_test.py", line 7, in <module> > print cbook.report_memory() > File > "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/matplotlib/cbook.py", > line 1212, in report_memory > stdout=PIPE).stdout.readlines() > IOError: [Errno 4] Interrupted system call > > > Is this cbook recipe maybe broken? > > Best, > Michael > > > > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: K.-Michael A. <kmi...@gm...> - 2013-07-17 03:50:23
|
Hi! I have just run an old code that I believe was working before on OSX. I am trying this with matplotlib 1.2.1 on an OSX EPD running Python 2.7.3 In [1]: from matplotlib.pylab import * In [2]: import matplotlib.cbook as cbook In [3]: data = ones((1500,1500,3)) In [4]: imshow(data) Out[4]: <matplotlib.image.AxesImage at 0x109d343d0> In [5]: ax = gca() In [6]: print cbook.report_memory() --------------------------------------------------------------------------- IOError Traceback (most recent call last) <ipython-input-6-88a73a5ab996> in <module>() ----> 1 print cbook.report_memory() /Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/matplotlib/cbook.py in report_memory(i) 1210 elif sys.platform.startswith('darwin'): 1211 a2 = Popen('ps -p %d -o rss,vsz' % pid, shell=True, -> 1212 stdout=PIPE).stdout.readlines() 1213 mem = int(a2[1].split()[0]) 1214 elif sys.platform.startswith('win'): IOError: [Errno 4] Interrupted system call First I thought, maybe this doesn't run in IPython for a reason, but trying it as a script also fails: (general_dev+)[maye@lunatic ~/Dropbox/src/pymars]$ python imshow_test.py Traceback (most recent call last): File "imshow_test.py", line 7, in <module> print cbook.report_memory() File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/matplotlib/cbook.py", line 1212, in report_memory stdout=PIPE).stdout.readlines() IOError: [Errno 4] Interrupted system call Is this cbook recipe maybe broken? Best, Michael |
From: Tim M. <tim...@gm...> - 2013-07-14 11:35:49
|
> Finally I got installed by following link below That's not a PPA for Ubuntu... |
From: Sudheer J. <sud...@ya...> - 2013-07-13 10:07:50
|
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 <da...@at...> To: Sudheer Joseph <sud...@ya...> >Cc: "Mat...@li..." <mat...@li...>; Phil Elson <pel...@gm...> >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" <sud...@ya...> 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 <da...@at...> >> >>To: Phil Elson <pel...@gm...> >>>Cc: Sudheer Joseph <sud...@ya...>; "mat...@li..." <mat...@li...> >>>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 <pel...@gm...> 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 <sud...@ya...> 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...@gm...;sud...@ya... >>>>>Web- http://oppamthadathil.tripod.com >>>>>*************************************************************** >>>>> >>>>> >>>>>----- Original Message ----- >>>>>> From: "Signell, Richard" <rsi...@us...> >>>>>> To: Sudheer Joseph <sud...@ya...> >>>>>> 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 >>>>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>>>> Web- http://oppamthadathil.tripod.com >>>>>>> *************************************************************** >>>>>>> >>>>>>> >>>>> >>>>>>> ----- Original Message ----- >>>>>>>> From: "Signell, Richard" <rsi...@us...> >>>>>>>> To: Sudheer Joseph <sud...@ya...> >>>>>>>> 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 >>>>>>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>>>>>> 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 >>>>>>>>> Mat...@li... >>>>>>>>> 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 >>>>>Mat...@li... >>>>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>> >>>> >>>>------------------------------------------------------------------------------ >>>>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 >>>>Mat...@li... >>>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>>> >>> >>> >>> >>>-- >>>Dr Andrew Dawson >>>Atmospheric, Oceanic & Planetary Physics >>>Clarendon Laboratory >>>Parks Road >>>Oxford OX1 3PU, UK >>>Tel: +44 (0)1865 282438 >>>Email: da...@at... >>>Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson >>> >>> >> > > |
From: Sudheer J. <sud...@ya...> - 2013-07-13 08:25:50
|
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...@gm...;sud...@ya... Web- http://oppamthadathil.tripod.com *************************************************************** >________________________________ > From: Andrew Dawson <da...@at...> >To: Sudheer Joseph <sud...@ya...> >Cc: "Mat...@li..." <mat...@li...>; Phil Elson <pel...@gm...> >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" <sud...@ya...> 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 <da...@at...> >> >>To: Phil Elson <pel...@gm...> >>>Cc: Sudheer Joseph <sud...@ya...>; "mat...@li..." <mat...@li...> >>>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 <pel...@gm...> 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 <sud...@ya...> 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...@gm...;sud...@ya... >>>>>Web- http://oppamthadathil.tripod.com >>>>>*************************************************************** >>>>> >>>>> >>>>>----- Original Message ----- >>>>>> From: "Signell, Richard" <rsi...@us...> >>>>>> To: Sudheer Joseph <sud...@ya...> >>>>>> 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 >>>>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>>>> Web- http://oppamthadathil.tripod.com >>>>>>> *************************************************************** >>>>>>> >>>>>>> >>>>> >>>>>>> ----- Original Message ----- >>>>>>>> From: "Signell, Richard" <rsi...@us...> >>>>>>>> To: Sudheer Joseph <sud...@ya...> >>>>>>>> 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 >>>>>>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>>>>>> 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 >>>>>>>>> Mat...@li... >>>>>>>>> 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 >>>>>Mat...@li... >>>>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>> >>>> >>>>------------------------------------------------------------------------------ >>>>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 >>>>Mat...@li... >>>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>>> >>> >>> >>> >>>-- >>>Dr Andrew Dawson >>>Atmospheric, Oceanic & Planetary Physics >>>Clarendon Laboratory >>>Parks Road >>>Oxford OX1 3PU, UK >>>Tel: +44 (0)1865 282438 >>>Email: da...@at... >>>Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson >>> >>> >> > > |
From: Andrew D. <da...@at...> - 2013-07-13 07:34:34
|
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" <sud...@ya...> 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 <da...@at...> > > To: Phil Elson <pel...@gm...> > >Cc: Sudheer Joseph <sud...@ya...>; " > mat...@li..." < > mat...@li...> > >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 <pel...@gm...> 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 <sud...@ya...> 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...@gm...;sud...@ya... > >>>Web- http://oppamthadathil.tripod.com > >>>*************************************************************** > >>> > >>> > >>>----- Original Message ----- > >>>> From: "Signell, Richard" <rsi...@us...> > >>>> To: Sudheer Joseph <sud...@ya...> > >>>> 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 > >>>> <sud...@ya...> 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...@gm...;sud...@ya... > >>>>> Web- http://oppamthadathil.tripod.com > >>>>> *************************************************************** > >>>>> > >>>>> > >>> > >>>>> ----- Original Message ----- > >>>>>> From: "Signell, Richard" <rsi...@us...> > >>>>>> To: Sudheer Joseph <sud...@ya...> > >>>>>> 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 > >>>>>> <sud...@ya...> 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...@gm...;sud...@ya... > >>>>>>> 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 > >>>>>>> Mat...@li... > >>>>>>> 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 > >>>Mat...@li... > >>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >>> > >> > > >>------------------------------------------------------------------------------ > >>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 > >>Mat...@li... > >>https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >> > >> > > > > > > > >-- > >Dr Andrew Dawson > >Atmospheric, Oceanic & Planetary Physics > >Clarendon Laboratory > >Parks Road > >Oxford OX1 3PU, UK > >Tel: +44 (0)1865 282438 > >Email: da...@at... > >Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson > > > > > |
From: Sterling S. <sm...@fu...> - 2013-07-13 05:02:51
|
Sudheer, Although the documentation is not consistent with the following (as of v1.0.1), the X and Y arguments to contourf can be 1D arrays. Consider: >>> from pylab import * >>> x=range(100) >>> y=range(20) >>> xx,yy=meshgrid(x,y) >>> z=xx**2+yy**2 >>> contourf(x,y,z) <matplotlib.contour.QuadContourSet instance at 0x114e5fa28> -Sterling On Jul 12, 2013, at 6:22PM, 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 <da...@at...> > > To: Phil Elson <pel...@gm...> >> Cc: Sudheer Joseph <sud...@ya...>; "mat...@li..." <mat...@li...> >> 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 <pel...@gm...> 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 <sud...@ya...> 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...@gm...;sud...@ya... >>>> Web- http://oppamthadathil.tripod.com >>>> *************************************************************** >>>> >>>> >>>> ----- Original Message ----- >>>>> From: "Signell, Richard" <rsi...@us...> >>>>> To: Sudheer Joseph <sud...@ya...> >>>>> 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 >>>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>>> Web- http://oppamthadathil.tripod.com >>>>>> *************************************************************** >>>>>> >>>>>> >>>> >>>>>> ----- Original Message ----- >>>>>>> From: "Signell, Richard" <rsi...@us...> >>>>>>> To: Sudheer Joseph <sud...@ya...> >>>>>>> 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 >>>>>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>>>>> 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 >>>>>>>> Mat...@li... >>>>>>>> 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 >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>> >>> ------------------------------------------------------------------------------ >>> 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 >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >> >> >> >> -- >> Dr Andrew Dawson >> Atmospheric, Oceanic & Planetary Physics >> Clarendon Laboratory >> Parks Road >> Oxford OX1 3PU, UK >> Tel: +44 (0)1865 282438 >> Email: da...@at... >> Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson >> >> > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Sudheer J. <sud...@ya...> - 2013-07-13 02:00:10
|
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...@gm...;sud...@ya... Web- http://oppamthadathil.tripod.com *************************************************************** ----- Original Message ----- > From: Sudheer Joseph <sud...@ya...> > To: Phil Elson <pel...@gm...> > Cc: "mat...@li..." <mat...@li...> > 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...@gm...;sud...@ya... > Web- http://oppamthadathil.tripod.com > *************************************************************** > > >> ________________________________ >> From: Phil Elson <pel...@gm...> >> To: Sudheer Joseph <sud...@ya...> >> Cc: "Signell, Richard" <rsi...@us...>; > "mat...@li..." > <mat...@li...> >> 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 <sud...@ya...> > 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...@gm...;sud...@ya... >>> Web- http://oppamthadathil.tripod.com >>> *************************************************************** >>> >>> >>> ----- Original Message ----- >>>> From: "Signell, Richard" <rsi...@us...> >>>> To: Sudheer Joseph <sud...@ya...> >>>> 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 >>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>> Web- http://oppamthadathil.tripod.com >>>>> > *************************************************************** >>>>> >>>>> >>> >>>>> ----- Original Message ----- >>>>>> From: "Signell, Richard" > <rsi...@us...> >>>>>> To: Sudheer Joseph <sud...@ya...> >>>>>> 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 >>>>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>>>> 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 >>>>>>> Mat...@li... >>>>>>> > 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 >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> >> > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Sudheer J. <sud...@ya...> - 2013-07-13 01:22:11
|
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 <da...@at...> To: Phil Elson <pel...@gm...> >Cc: Sudheer Joseph <sud...@ya...>; "mat...@li..." <mat...@li...> >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 <pel...@gm...> 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 <sud...@ya...> 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...@gm...;sud...@ya... >>>Web- http://oppamthadathil.tripod.com >>>*************************************************************** >>> >>> >>>----- Original Message ----- >>>> From: "Signell, Richard" <rsi...@us...> >>>> To: Sudheer Joseph <sud...@ya...> >>>> 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 >>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>> Web- http://oppamthadathil.tripod.com >>>>> *************************************************************** >>>>> >>>>> >>> >>>>> ----- Original Message ----- >>>>>> From: "Signell, Richard" <rsi...@us...> >>>>>> To: Sudheer Joseph <sud...@ya...> >>>>>> 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 >>>>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>>>> 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 >>>>>>> Mat...@li... >>>>>>> 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 >>>Mat...@li... >>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >>------------------------------------------------------------------------------ >>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 >>Mat...@li... >>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > > >-- >Dr Andrew Dawson >Atmospheric, Oceanic & Planetary Physics >Clarendon Laboratory >Parks Road >Oxford OX1 3PU, UK >Tel: +44 (0)1865 282438 >Email: da...@at... >Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson > > |
From: Sudheer J. <sud...@ya...> - 2013-07-13 01:19:34
|
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...@gm...;sud...@ya... Web- http://oppamthadathil.tripod.com *************************************************************** >________________________________ > From: Phil Elson <pel...@gm...> >To: Sudheer Joseph <sud...@ya...> >Cc: "Signell, Richard" <rsi...@us...>; "mat...@li..." <mat...@li...> >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 <sud...@ya...> 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...@gm...;sud...@ya... >>Web- http://oppamthadathil.tripod.com >>*************************************************************** >> >> >>----- Original Message ----- >>> From: "Signell, Richard" <rsi...@us...> >>> To: Sudheer Joseph <sud...@ya...> >>> 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 >>> <sud...@ya...> 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...@gm...;sud...@ya... >>>> Web- http://oppamthadathil.tripod.com >>>> *************************************************************** >>>> >>>> >> >>>> ----- Original Message ----- >>>>> From: "Signell, Richard" <rsi...@us...> >>>>> To: Sudheer Joseph <sud...@ya...> >>>>> 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 >>>>> <sud...@ya...> 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...@gm...;sud...@ya... >>>>>> 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 >>>>>> Mat...@li... >>>>>> 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 >>Mat...@li... >>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > |
From: p.maxted <p.m...@ke...> - 2013-07-12 22:26:35
|
Also tried building from source with python2.7 - same problem: I deleted the old build/source directory, re-extracted the source from the tar file and tried... [lap3:~/matplotlib-1.2.1] pflm% sudo python2.7 setup.py install Build runs ok except for some warnings like ... warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [macpflm:~] pflm% python2.7 Python 2.7.3 (default, Oct 22 2012, 06:12:28) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot Python(24257) malloc: *** error for object 0x101d79820: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort -Pierre -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Install-problems-OSX-10-6-8-Python-3-3-1-tp41430p41468.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Sterling S. <sm...@fu...> - 2013-07-12 17:13:24
|
Skip, I am not at all familiar with dates in matplotlib, but what does plt.xlim() yield? Or are the limits not updated before calling the tick formatter? -Sterling On Jul 12, 2013, at 8:49AM, Skip Montanaro wrote: > Let me return to my FuncFormatter usage. As I indicated in an earlier > post, I made a single format decision based on the x range of the > entire data set. The decision code was straightforward: > > x_delta = x_range[1] - x_range[0] > if x_delta > int(1.5 * 365) * ONE_DAY: > xfmt = "%Y-%m-%d" > elif x_delta > 2 * ONE_DAY: > xfmt = "%m/%d\n%H:%M" > elif x_delta < 2 * ONE_HOUR: > xfmt = "%H:%M:%S" > else: > xfmt = "%H:%M" > > How do I compute x_delta as it relates to the currently visible > window? In the above code, x_range represents the x range of my > entire data set. > > Thx, > > Skip > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Skip M. <sk...@po...> - 2013-07-12 16:49:02
|
> I am not at all familiar with dates in matplotlib, but what does plt.xlim() yield? Or are the limits not updated before calling the tick formatter? Bingo! I changed "plt" to "pylab" and now I have access to the x range of the current viewport. Thanks, Skip |
From: Skip M. <sk...@po...> - 2013-07-12 15:49:51
|
Let me return to my FuncFormatter usage. As I indicated in an earlier post, I made a single format decision based on the x range of the entire data set. The decision code was straightforward: x_delta = x_range[1] - x_range[0] if x_delta > int(1.5 * 365) * ONE_DAY: xfmt = "%Y-%m-%d" elif x_delta > 2 * ONE_DAY: xfmt = "%m/%d\n%H:%M" elif x_delta < 2 * ONE_HOUR: xfmt = "%H:%M:%S" else: xfmt = "%H:%M" How do I compute x_delta as it relates to the currently visible window? In the above code, x_range represents the x range of my entire data set. Thx, Skip |
From: Skip M. <sk...@po...> - 2013-07-12 14:02:05
|
On Fri, Jul 12, 2013 at 8:47 AM, Skip Montanaro <sk...@po...> wrote: > Is there some way to get the x axis to display > fractions of a second? There is no strftime format character > corresponding to that. (I proposed one on python-dev several years > ago, but I don't think it was ever adopted.) My memory failed me. I not only proposed, but submitted the necessary patches which were accepted. However, this only works for datetime objects: >>> import datetime >>> datetime.datetime.now().strftime("%H:%M:%S.%f") '08:58:57.854562' It's not supported by time.strftime: >>> import time >>> time.time() 1373637581.478104 >>> time.strftime("%H:%M:%S.%f", time.localtime()) '09:00:10.%f' which I suspect is what matplotlib uses if it converts datetime objects to floats internally. Skip |
From: Skip M. <sk...@po...> - 2013-07-12 13:47:19
|
> You're suggesting that I shouldn't have to do anything with formatters > and locators if my X values are datetime objects? Maybe I should > simply scrub any locator/formatter initialization altogether. Did that. Works just as before with my custom FuncFormatter, and with my explicit AutoDateFormatter. Hmmm... Looking at the default scaled dictionary, I suspect I failed to understand exactly what its scale is. Perhaps all the examples I've used so far have generally been less than 24 hours in duration. Let me play with that, but ask a corollary question: Is there some way to get the x axis to display fractions of a second? There is no strftime format character corresponding to that. (I proposed one on python-dev several years ago, but I don't think it was ever adopted.) Thx, Skip |
From: Skip M. <sk...@po...> - 2013-07-12 11:46:23
|
> Are you definately passing through datetime objects, or are you passing > through the datetime "ordinals" / Julian time? Definitely datetime objects: if xtime: min_x = datetime.datetime(9999, 12, 31, 23, 59, 59) max_x = datetime.datetime(1970, 1, 1, 0, 0, 0) def parse_x(x): try: return dateutil.parser.parse(x) except ValueError: print >> sys.stderr, "Can't parse", repr(x), "as a timestamp." raise ... You're suggesting that I shouldn't have to do anything with formatters and locators if my X values are datetime objects? Maybe I should simply scrub any locator/formatter initialization altogether. When I first started this little tool I used a FuncFormatter which (unknown to me) performed about like the AutoDateFormatter without the "Auto" part. It simply selected the X axis format based on the range of the data. Skip |
From: Tim M. <tim...@gm...> - 2013-07-12 09:46:45
|
Am 12.07.2013 09:51, schrieb Phil Elson: > 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 Could you please point me to this PPA? Where can I find the link? |
From: Andrew D. <da...@at...> - 2013-07-12 08:24:05
|
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 <pel...@gm...> 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 <sud...@ya...> 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...@gm...;sud...@ya... >> Web- http://oppamthadathil.tripod.com >> *************************************************************** >> >> >> ----- Original Message ----- >> > From: "Signell, Richard" <rsi...@us...> >> > To: Sudheer Joseph <sud...@ya...> >> > 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 >> > <sud...@ya...> 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...@gm...;sud...@ya... >> >> Web- http://oppamthadathil.tripod.com >> >> *************************************************************** >> >> >> >> >> >> ----- Original Message ----- >> >>> From: "Signell, Richard" <rsi...@us...> >> >>> To: Sudheer Joseph <sud...@ya...> >> >>> 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 >> >>> <sud...@ya...> 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...@gm...;sud...@ya... >> >>>> 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 >> >>>> Mat...@li... >> >>>> 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 >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- Dr Andrew Dawson Atmospheric, Oceanic & Planetary Physics Clarendon Laboratory Parks Road Oxford OX1 3PU, UK Tel: +44 (0)1865 282438 Email: da...@at... Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson |
From: Phil E. <pel...@gm...> - 2013-07-12 07:51:12
|
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 <sud...@ya...> 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...@gm...;sud...@ya... > Web- http://oppamthadathil.tripod.com > *************************************************************** > > > ----- Original Message ----- > > From: "Signell, Richard" <rsi...@us...> > > To: Sudheer Joseph <sud...@ya...> > > 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 > > <sud...@ya...> 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...@gm...;sud...@ya... > >> Web- http://oppamthadathil.tripod.com > >> *************************************************************** > >> > >> > >> ----- Original Message ----- > >>> From: "Signell, Richard" <rsi...@us...> > >>> To: Sudheer Joseph <sud...@ya...> > >>> 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 > >>> <sud...@ya...> 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...@gm...;sud...@ya... > >>>> 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 > >>>> Mat...@li... > >>>> 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Phil E. <pel...@gm...> - 2013-07-12 07:50:34
|
This surprises me as the AutoDateFormatter automatically kicks in once you pass through some datetime objects, and the AutoDateFormatter & Locator do the right thing when zooming (the format changes depending on the temporal resolution). For example, the following code behaves nicely when I zoom in to a small segment of the line: import datetime as dt import numpy as np import matplotlib.pyplot as plt d1 = dt.datetime(1990, 1, 1) n = 365 x = np.array([d1 + dt.timedelta(days=i) for i in range(n)], dtype=object) y = np.sin(np.linspace(0, np.pi * 2, n)) plt.plot(x, y) plt.show() Are you definately passing through datetime objects, or are you passing through the datetime "ordinals" / Julian time? Cheers, Phil On 11 July 2013 16:04, Skip Montanaro <sk...@po...> wrote: > > I have a small matplotlib app I wrote to plot columns of a CSV files. > > The X axis is almost always time. Once displayed, I will often zoom in > > on a small patch of a plot. I'm currently selecting the strftime > > format based on the original time range of the input. As I zoom in, > > however, that doesn't work so well.... > > > but when I use it in the obvious way, all I get is the current year > > for all tick labels, despite the fact that the scaled attribute of the > > formatter has keys which are much smaller than a year. > > I kind of got this working. I had to associate the locator with the X > axis and call it's autoscale() method before calling plot.show(). Now > I get %H:%M:%S formatting for everything, even when I'm zoomed way out > on a data set containing two-days worth of time series data. I > suppose I can fiddle with the AutoDateFormatter's scaled attribute, > but the default looks like it ought to work. Any thoughts on what I'm > (still) missing? > > The locator/formatter code looks like this: > > locator = matplotlib.dates.AutoDateLocator() > formatter = matplotlib.dates.AutoDateFormatter(locator) > ... > left_plot = figure.add_subplot(111) > left_plot.set_title(title) > left_plot.set_axisbelow(True) > left_plot.yaxis.set_major_formatter(pylab.FormatStrFormatter('%g')) > ... > locator.set_axis(left_plot.xaxis) > left_plot.xaxis.set_major_formatter(formatter) > locator.autoscale() > pylab.show() > > This works fine except for the lack of dynamic scaling and apparently > incorrect choice of labels on plots over large time scales. > > Skip > > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Sudheer J. <sud...@ya...> - 2013-07-12 00:06:59
|
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...@gm...;sud...@ya... Web- http://oppamthadathil.tripod.com *************************************************************** ----- Original Message ----- > From: "Signell, Richard" <rsi...@us...> > To: Sudheer Joseph <sud...@ya...> > 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 > <sud...@ya...> 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...@gm...;sud...@ya... >> Web- http://oppamthadathil.tripod.com >> *************************************************************** >> >> >> ----- Original Message ----- >>> From: "Signell, Richard" <rsi...@us...> >>> To: Sudheer Joseph <sud...@ya...> >>> 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 >>> <sud...@ya...> 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...@gm...;sud...@ya... >>>> 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 >>>> Mat...@li... >>>> 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 > |