[Tokyodebian-commits] TokyoDebian CVS update:
monthly-report/image200612 people-chart.py people-chart.png
tokyodebian CVS Commit
tokyodebian-commits at lists.alioth.debian.org
Wed Aug 2 23:25:08 UTC 2006
User: dancer
Date: 06/08/02 23:25:08
Added: image200612 people-chart.py people-chart.png
Log:
fix presentation. speedstep_centrino, not cpufreq.
Revision Changes Path
1.1 monthly-report/image200612/people-chart.py
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/image200612/people-chart.py?annotate=1.1&cvsroot=
CVSWeb: View this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/image200612/people-chart.py?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
-----------------------------------
Index: people-chart.py
===================================================================
#!/usr/bin/python
# http://home.gna.org/pychart/doc/index.html
from pychart import *
data=[(1,21,8),
(2,10,7),
(3,8,30),
(4,6,15),
(5,8,6),
(6,12,16),
(7,12,40),
(8,7),
(9,14),
(10,9),
(11,8),
(12,8)
]
xaxis = axis.X(tic_interval = 1, label="Time")
yaxis = axis.Y(tic_interval = 10, label="Attendees")
chart_object.set_defaults(area.T, size = (480, 300))
ar = area.T(x_axis=xaxis, y_axis=yaxis, x_range=(1,12), y_range=(0,None))
plot2005 = line_plot.T(label="year 2005", data=data, ycol=1, tick_mark=tick_mark.circle)
plot2006 = line_plot.T(label="year 2006", data=data, ycol=2, tick_mark=tick_mark.square)
ar.add_plot(plot2005, plot2006)
can = canvas.init("people-chart.png")
ar.draw(can)
1.1 monthly-report/image200612/people-chart.png
<<Binary file>>
More information about the Tokyodebian-commits
mailing list