示例#1
0
 def createXAxis (self):
     xbounds = self.setXBounds ()
     textProperties = {'textHeight': 8,
                       'horizontalAnchor': 'center',
                       }
     xaxis = XAxis (inf = self.canvas.x,
                    sup = self.canvas.x + self.canvas.width,
                    y = self.canvas.y - 1,
                    lower = xbounds[0],
                    upper = xbounds[1],
                    textProperties = textProperties)
     xaxis.createTicks ()
     xaxis.drawTicks ()
     self.dataGroup.drawAt (xaxis, 0)
示例#2
0
 def createXAxis (self):
     textProperties = {'textHeight': self.settings.xAxisTextHeight,
                       'horizontalAnchor': 'center',
                       }
     xaxis = XAxis (id = 'x-axis',
                    inf = self.canvas.x,
                    sup = self.canvas.x + self.canvas.width,
                    y = self.xAxisPos,
                    lower = self.xbounds[0],
                    upper = self.xbounds[1],
                    textProperties = textProperties)
     xaxis.createTicks ()
     if self.xlabels:
         xaxis.setText (self.xlabels)
     xaxis.drawTicks ()
     self.dataGroup.drawAt (xaxis, 0)
示例#3
0
文件: base.py 项目: BhagyaGH/eden
 def createXAxis(self):
     textProperties = {"textHeight": self.settings.xAxisTextHeight, "horizontalAnchor": "center"}
     xaxis = XAxis(
         id="x-axis",
         inf=self.canvas.x,
         sup=self.canvas.x + self.canvas.width,
         y=self.xAxisPos,
         lower=self.xbounds[0],
         upper=self.xbounds[1],
         textProperties=textProperties,
     )
     xaxis.createTicks()
     if self.xlabels:
         xaxis.setText(self.xlabels)
     xaxis.drawTicks()
     self.dataGroup.drawAt(xaxis, 0)
示例#4
0
 def createXAxis (self):
     textProperties = {'textHeight': self.settings.xAxisTextHeight,
                       'horizontalAnchor': 'center',
                       }
     xaxis = XAxis (id = 'x-axis',
                    inf = self.canvas.x,
                    sup = self.canvas.x + self.canvas.width,
                    y = self.xAxisPos,
                    lower = self.xbounds[0],
                    upper = self.xbounds[1],
                    has_lines = self.settings.verticalGrid,
                    line_height = self.canvas.height,
                    textProperties = textProperties)
     xaxis.createTicks ()
     if self.xlabels:
         xaxis.setText (self.xlabels)
     xaxis.drawTicks ()
     self.dataGroup.drawAt (xaxis, 0)
示例#5
0
 def createXAxis(self):
     xbounds = self.setXBounds()
     textProperties = {
         'textHeight': 8,
         'horizontalAnchor': 'center',
     }
     xaxis = XAxis(inf=self.canvas.x,
                   sup=self.canvas.x + self.canvas.width,
                   y=self.canvas.y - 1,
                   lower=xbounds[0],
                   upper=xbounds[1],
                   textProperties=textProperties)
     xaxis.createTicks()
     xaxis.drawTicks()
     self.dataGroup.drawAt(xaxis, 0)