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
(1) |
2
|
3
|
4
|
5
|
6
(3) |
7
(1) |
8
(2) |
9
(1) |
10
|
11
|
12
|
13
(1) |
14
|
15
(2) |
16
(1) |
17
(3) |
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
(1) |
26
|
27
|
28
|
29
|
30
|
|
|
|
|
|
|
From: Leonardo M. <lm...@ud...> - 2003-11-06 23:36:12
|
Hi Nate > I have a database query that returns a variable length list of hosts for > which I want to plot some data about. > How can I pass Gnuplot.plot a list of Gnuplot.Data types? I don't think there is a way. Is that right Michael ? I did hack Gnuplot to do what you want. Michael, could you please take a look ? Is it safe to apply to CVS ? It seems to work for me. Replace the "_add_to_queue' method in _Gnuplot.py, by the following hacked version: #### CODE BEGINS def _add_to_queue(self, items): """Add a list of items to the itemlist (but don't plot them). 'items' is a sequence of items, each of which should be a 'PlotItem' of some kind, a string (interpreted as a function string for gnuplot to evaluate), or a Numeric array (or something that can be converted to a Numeric array). """ def _add_item(item): if isinstance(item, PlotItems.PlotItem): self.itemlist.append(item) elif type(item) is types.StringType: self.itemlist.append(PlotItems.Func(item)) else: # assume data is an array: self.itemlist.append(PlotItems.Data(item)) for item in items: if type(item) is types.ListType: # assume it is a list of PlotItems for plot_item in item: _add_item(plot_item) else: # assume it is a regular PlotItem _add_item(item) #### CODE ENDS Essentially I moved the original functionality to "_add_item()", and I chech for each "item" whether it is really a PlotItem, or a list of PlotItems instead. Then I pass the data to "_add_item() accordingly. Anyways, hope this helps, -- Leo On Thu, 6 Nov 2003, Nate Gelbard wrote: > Hi, > > I have a database query that returns a variable length list of hosts for > which I want to plot some data about. > How can I pass Gnuplot.plot a list of Gnuplot.Data types? > In the past I knew how may lines I had on the graph so I could just pass > g.plot(gd1,gd2,gd3,gd4) .... how do I > make a variable length variable list? > > I was trying this but got a TypeError: bad argument type for built-in > operation > > plot_list = [] > for i in res.keys(): > print i > x = Numeric.arange(len(res[i]),typecode=Numeric.Float) > y = Numeric.zeros(len(res[i])) > for j in range(0,len(res[i])): > line = res[i] > y[j] = line[j][0] > gd = Gnuplot.Data(x,y,title=i,smooth=smoothtype) > plot_list.append(gd) > g.plot(plot_list) > > Thanks, > --( Nate Gelbard, QA Engineer > --( Tripwire, Inc., The Integrity Assurance Company |
From: Nate G. <gel...@tr...> - 2003-11-06 22:53:06
|
Hi, I have a database query that returns a variable length list of hosts for which I want to plot some data about. How can I pass Gnuplot.plot a list of Gnuplot.Data types? In the past I knew how may lines I had on the graph so I could just pass g.plot(gd1,gd2,gd3,gd4) .... how do I=20 make a variable length variable list? I was trying this but got a TypeError: bad argument type for built-in operation plot_list =3D [] for i in res.keys(): print i x =3D Numeric.arange(len(res[i]),typecode=3DNumeric.Float) y =3D Numeric.zeros(len(res[i])) for j in range(0,len(res[i])): line =3D res[i] y[j] =3D line[j][0] gd =3D Gnuplot.Data(x,y,title=3Di,smooth=3Dsmoothtype) plot_list.append(gd) g.plot(plot_list) Thanks, --( Nate Gelbard, QA Engineer =20 --( Tripwire, Inc., The Integrity Assurance Company |