[jToolkit-cvs] jToolkit/widgets chart.py,1.18,1.19
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2004-02-10 09:17:13
|
Update of /cvsroot/jtoolkit/jToolkit/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26755 Modified Files: chart.py Log Message: Widened graph. Fixed bug in automatic x-axis label spacing. Changed legend position to top left Index: chart.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/widgets/chart.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** chart.py 10 Feb 2004 09:12:31 -0000 1.18 --- chart.py 10 Feb 2004 09:14:01 -0000 1.19 *************** *** 45,49 **** def sizeimage(self): """Subclasses of this should implement this uniquely""" ! self.im_width = 12 self.im_height = 9 --- 45,49 ---- def sizeimage(self): """Subclasses of this should implement this uniquely""" ! self.im_width = 18 self.im_height = 9 *************** *** 134,141 **** currentxdata.append(self.xdata[currentxpos]) currentxpos += sliceNum ! if currentxpos != xDataLen+sliceNum-1: ! currentxdata.extend(self.xdata[-1:]) #Set the x labels ! self.figure.get_current_axis().set_xticks(arange(xDataLen,step=sliceNum)) self.figure.get_current_axis().set_xticklabels(currentxdata,rotation='vertical') --- 134,140 ---- currentxdata.append(self.xdata[currentxpos]) currentxpos += sliceNum ! currentxdata.extend(self.xdata[-1:]) #Set the x labels ! self.figure.get_current_axis().set_xticks(arange(xDataLen+1,step=sliceNum)) self.figure.get_current_axis().set_xticklabels(currentxdata,rotation='vertical') *************** *** 145,149 **** #Draw a legend ! self.figure.get_current_axis().legend(self.legendlabels,3) --- 144,148 ---- #Draw a legend ! self.figure.get_current_axis().legend(self.legendlabels,2) |