[jToolkit-cvs] jToolkit/widgets chart.py,1.1,1.2
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2004-02-10 07:33:08
|
Update of /cvsroot/jtoolkit/jToolkit/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9288 Modified Files: chart.py Log Message: Added variable chart size Index: chart.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/widgets/chart.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** chart.py 10 Feb 2004 07:24:36 -0000 1.1 --- chart.py 10 Feb 2004 07:29:41 -0000 1.2 *************** *** 18,21 **** --- 18,23 ---- self.xcolumn = xcolumn self.ycolumns = ycolumns + if not hasattr(self, 'chartSize'): + self.chartSize = (250,250) # Get a copy of the default options self.options = gdchart.defaults.copy() *************** *** 41,45 **** self.draw() tempfile = cStringIO.StringIO() ! gdchart.chart(gdchart.GDC_LINE, (250, 250), tempfile, self.xdata, *self.ydata) return tempfile.getvalue() --- 43,47 ---- self.draw() tempfile = cStringIO.StringIO() ! gdchart.chart(gdchart.GDC_LINE, self.chartSize, tempfile, self.xdata, *self.ydata) return tempfile.getvalue() |