[jToolkit-cvs] jToolkit/widgets chart.py,1.24,1.25
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2004-03-08 17:12:42
|
Update of /cvsroot/jtoolkit/jToolkit/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26414 Modified Files: chart.py Log Message: Adapted chart to matplotlib 0.50 Index: chart.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/widgets/chart.py,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** chart.py 8 Mar 2004 16:41:21 -0000 1.24 --- chart.py 8 Mar 2004 16:48:13 -0000 1.25 *************** *** 34,38 **** self.chartType = LINE_CHART if not hasattr(self, 'dpi'): ! self.dpi = 50 self.options = {} --- 34,38 ---- self.chartType = LINE_CHART if not hasattr(self, 'dpi'): ! self.dpi = 100 self.options = {} *************** *** 54,59 **** def sizeimage(self): """Subclasses of this should implement this uniquely""" ! self.im_width = 17.5 ! self.im_height = 9 def option(self, **args): --- 54,59 ---- def sizeimage(self): """Subclasses of this should implement this uniquely""" ! self.im_width = 8.75 ! self.im_height = 4.5 def option(self, **args): *************** *** 68,72 **** try: tempfilename = str(random.randint(100000,999999)) + '.png' ! self.figure.figure.print_figure(tempfilename,self.dpi) #Read and report --- 68,75 ---- try: tempfilename = str(random.randint(100000,999999)) + '.png' ! if hasattr(self.figure,'figure'): ! self.figure.figure.print_figure(tempfilename,self.dpi) ! else: #matplotlib 0.50 ! self.figure.canvas.print_figure(tempfilename,self.dpi) #Read and report *************** *** 228,233 **** def sizeimage(self): ! self.im_width = 6 ! self.im_height = 8 #This should take tagname length into account --- 231,236 ---- def sizeimage(self): ! self.im_width = 3 ! self.im_height = 4 #This should take tagname length into account |