Пример #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
 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)