You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(15) |
Sep
(21) |
Oct
(15) |
Nov
|
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(7) |
Feb
(6) |
Mar
(2) |
Apr
(5) |
May
(6) |
Jun
(3) |
Jul
(4) |
Aug
(4) |
Sep
(3) |
Oct
(14) |
Nov
(16) |
Dec
(10) |
2004 |
Jan
(5) |
Feb
(10) |
Mar
(4) |
Apr
(8) |
May
(1) |
Jun
(5) |
Jul
(5) |
Aug
(4) |
Sep
(10) |
Oct
(3) |
Nov
(4) |
Dec
|
2005 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(15) |
May
(12) |
Jun
(1) |
Jul
(4) |
Aug
(3) |
Sep
(6) |
Oct
(7) |
Nov
(21) |
Dec
(11) |
2006 |
Jan
(16) |
Feb
(12) |
Mar
(4) |
Apr
(6) |
May
(5) |
Jun
(9) |
Jul
|
Aug
(5) |
Sep
(1) |
Oct
(10) |
Nov
(4) |
Dec
(3) |
2007 |
Jan
(6) |
Feb
(4) |
Mar
(6) |
Apr
(11) |
May
(1) |
Jun
(21) |
Jul
|
Aug
(6) |
Sep
(2) |
Oct
(4) |
Nov
|
Dec
|
2008 |
Jan
(14) |
Feb
(1) |
Mar
(5) |
Apr
(22) |
May
(4) |
Jun
(1) |
Jul
(7) |
Aug
(5) |
Sep
(7) |
Oct
(3) |
Nov
|
Dec
(1) |
2009 |
Jan
(14) |
Feb
(1) |
Mar
(9) |
Apr
(5) |
May
(6) |
Jun
(7) |
Jul
(8) |
Aug
(3) |
Sep
|
Oct
|
Nov
(2) |
Dec
(4) |
2010 |
Jan
(2) |
Feb
|
Mar
(6) |
Apr
(6) |
May
(34) |
Jun
|
Jul
(8) |
Aug
(3) |
Sep
|
Oct
(5) |
Nov
(3) |
Dec
(1) |
2011 |
Jan
|
Feb
(4) |
Mar
(3) |
Apr
|
May
|
Jun
(5) |
Jul
(9) |
Aug
(5) |
Sep
(9) |
Oct
(3) |
Nov
(10) |
Dec
(1) |
2012 |
Jan
(1) |
Feb
(3) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(5) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(3) |
Nov
(2) |
Dec
(9) |
2014 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2016 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
|
2
(5) |
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
(2) |
11
(1) |
12
(1) |
13
|
14
|
15
|
16
(2) |
17
|
18
|
19
|
20
(1) |
21
|
22
|
23
(1) |
24
|
25
|
26
(6) |
27
(2) |
28
|
29
|
30
|
|
|
|
|
|
From: Michael H. <hag...@jp...> - 2002-09-27 12:25:58
|
chuck clark writes: > I think my problem lies in the fact of I'm not sure which PlotItem > type from gnuplot-py I should use. I was originally trying to use > Data but of course "12:01" can't be converted to a Numeric Float > array. So now I'm taking a step back and wondering if I need to > create my own PlotItem types of Date, Time and DateTime to do this? > [...] > gnuplot> set xdata time > gnuplot> set timefmt "%H:%M" > gnuplot> set format x "%H:%M" > gnuplot> set xrange ["12:00":"12:05"] > gnuplot> plot "/home/cclark/test.dat" using 1:2 A PlotItem object represents a whole plot including all of the associated data (if any), and the plot sub-command that has to be sent to gnuplot (e.g., '"/tmp/sxhhfy" using 1:3 with linespoints'). You can use any of the data-based PlotItems defined in the CVS version (_InlineFileItem, _FIFOFileItem, or _TempFileItem); you just have to call its constructor using the content that needs to be sent to gnuplot as one of the arguments. For example, this should work (untested): >>> content = """\ ... 12:01 4.63 ... 12:02 6.74 ... 12:03 0.0 ... 12:04 6.32 ... """ >>> plot_item = PlotItems._TempFileItem(content, with='linespoints') >>> g = Gnuplot.Gnuplot() >>> g('set xdata time') >>> g('set xdata time') >>> g('set timefmt "%H:%M"') >>> g('set format x "%H:%M"') >>> g('set xrange ["12:00":"12:05"]') >>> g.plot(plot_item) >>> The only trick is getting your data into a "content" string that gnuplot can understand. You can do that any way you want. PlotItems.Data() is now a helper function that does mainly that; you can use it as a starting point. I haven't decided whether to make the _InlineFileItem etc classes a part of the Gnuplot.py published interface, which is why their names start with '_'. I might rename them before the next Gnuplot.py release. Michael -- Michael Haggerty hag...@jp... |
From: chuck c. <cc...@zi...> - 2002-09-27 03:03:21
|
Leo, The mxdate package which Michael speaks of is a great package indeed and handles datetime data very well and has almost any date/time functions you could think of. I think my problem lies in the fact of I'm not sure which PlotItem type from gnuplot-py I should use. I was originally trying to use Data but of course "12:01" can't be converted to a Numeric Float array. So now I'm taking a step back and wondering if I need to create my own PlotItem types of Date, Time and DateTime to do this? I thought about doing as you say about converting my hh:mm:ss string into a float but it isn't really clean because time is base 60 and not decimal and I lose a lot of readability because suddenly my x-axis is not regular times that the user would expect to see but some decimal representation of it. If I somehow try to preserve the time by making 12:01 into 1201 then I'll have funny gaps from 1260 to 1300 and on every other hour. Gnuplot itself handles Date/Time types as seen in the 3.7.1 manual. If you had the data below in a file called test.dat you could plot it in Gnuplot with the following: 12:01 4.63 12:02 6.74 12:03 0.0 12:04 6.32 gnuplot> set xdata time gnuplot> set timefmt "%H:%M" gnuplot> set format x "%H:%M" gnuplot> set xrange ["12:00":"12:05"] gnuplot> plot "/home/cclark/test.dat" using 1:2 So I guess what I was wondering was if anyone had plotted date/time data using gnuplot-py with the existing PlotItem types or if people who were more familiar with the package than I am thought I'd need to come up with a new type. Any thoughts would be greatly appreciated. cheers, chuck |