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