[Tokyodebian-commits] TokyoDebian CVS update: monthly-report/image200612 people-chart.py people-chart.png

tokyodebian CVS Commit tokyodebian-commits at lists.alioth.debian.org
Sat Aug 5 17:18:02 UTC 2006


  User: dancer  
  Date: 06/08/05 17:18:02

  Modified:    image200612 people-chart.py people-chart.png
  Log:
  chart generation code reads csv data now.
  
  Revision  Changes    Path
  1.2       +2 -15     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.2&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/image200612/people-chart.py?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=
  
  CVSWeb: Diff to previous version:   http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/image200612/people-chart.py.diff?r1=1.2&r2=1.1&cvsroot=
  
  -----------------------------------
  
  Index: people-chart.py
  ===================================================================
  RCS file: /cvsroot/tokyodebian/monthly-report/image200612/people-chart.py,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- people-chart.py	2 Aug 2006 23:25:08 -0000	1.1
  +++ people-chart.py	5 Aug 2006 17:18:02 -0000	1.2
  @@ -3,25 +3,12 @@
   
   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)
  -]
  -
  +data = chart_data.read_csv('people.csv')
   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)
  +plot2005 = line_plot.T(label="year 2005", data=data, ycol=1, tick_mark=tick_mark.circle2)
   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")
  
  
  
  1.2       +18 -14    monthly-report/image200612/people-chart.png
  
  	<<Binary file>>
  
  



More information about the Tokyodebian-commits mailing list