Update of /cvsroot/jtoolkit/jToolkit/widgets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24661
Modified Files:
chart.py
Log Message:
Set the origin properly in legend chart
Index: chart.py
===================================================================
RCS file: /cvsroot/jtoolkit/jToolkit/widgets/chart.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** chart.py 10 Feb 2004 09:01:49 -0000 1.13
--- chart.py 10 Feb 2004 09:02:19 -0000 1.14
***************
*** 175,179 ****
self.figure.get_current_axis().set_xticklabels(self.xdata,rotation='vertical')
! self.figure.get_current_axis().bar(arange(len(self.xdata)),self.ydata[0],0.5,color=self.colours)
def sizeimage(self):
--- 175,182 ----
self.figure.get_current_axis().set_xticklabels(self.xdata,rotation='vertical')
! originY = None
! if ymin < 0 and ymax > 0:
! originY = 0
! self.figure.get_current_axis().bar(arange(len(self.xdata)),self.ydata[0],0.5,color=self.colours,originY=originY)
def sizeimage(self):
|