def __init__(self,**kwd): PlotArea.__init__(self) self.x = 0 self.y = 0 self.width = 100 self.height = 100 self.data = [1,2.3,1.7,4.2] self.labels = None # or list of strings self.startAngle = 90 self.direction = "clockwise" self.simpleLabels = 1 self.checkLabelOverlap = 0 self.pointerLabelMode = None self.sameRadii = False self.orderMode = 'fixed' self.xradius = self.yradius = None self.slices = TypedPropertyCollection(WedgeProperties) self.slices[0].fillColor = colors.darkcyan self.slices[1].fillColor = colors.blueviolet self.slices[2].fillColor = colors.blue self.slices[3].fillColor = colors.cyan self.slices[4].fillColor = colors.pink self.slices[5].fillColor = colors.magenta self.slices[6].fillColor = colors.yellow
def __init__(self, _value='', **kw): PlotArea.__init__(self) del self.__dict__['width'] del self.__dict__['height'] self.x = self.y = 0 kw.setdefault('value', _value) self._BCC.__init__(self, **kw)
def __init__(self,_value='',**kw): PlotArea.__init__(self) del self.__dict__['width'] del self.__dict__['height'] self.x = self.y = 0 kw.setdefault('value',_value) self._BCC.__init__(self,**kw)
def __init__(self): PlotArea.__init__(self) self.reversePlotOrder = 0 self.xValueAxis = XValueAxis() self.yValueAxis = YValueAxis() # this defines two series of 3 points. Just an example. self.data = [((1, 1), (2, 2), (2.5, 1), (3, 3), (4, 5)), ((1, 2), (2, 3), (2.5, 2), (3, 4), (4, 6))] self.lines = TypedPropertyCollection(LinePlotProperties) self.lines.strokeWidth = 1 self.lines[0].strokeColor = colors.red self.lines[1].strokeColor = colors.blue self.lineLabels = TypedPropertyCollection(Label) self.lineLabelFormat = None self.lineLabelArray = None # this says whether the origin is inside or outside # the bar - +10 means put the origin ten points # above the tip of the bar if value > 0, or ten # points inside if bar value < 0. This is different # to label dx/dy which are not dependent on the # sign of the data. self.lineLabelNudge = 10 # if you have multiple series, by default they butt # together. # New line chart attributes. self.joinedLines = 1 # Connect items with straight lines. # private attributes self._inFill = None
def __init__(self, _value="", **kw): PlotArea.__init__(self) del self.__dict__["width"] del self.__dict__["height"] self.x = self.y = 0 kw.setdefault("value", _value) self._BCC.__init__(self, **kw)
def __init__(self,BCC=None,_value='',**kw): self._BCC = BCC class Combiner(self.__class__,BCC): __name__ = self.__class__.__name__ self.__class__ = Combiner PlotArea.__init__(self) del self.width, self.height self.x = self.y = 0 kw.setdefault('value',_value) BCC.__init__(self,**kw)
def __init__(self): PlotArea.__init__(self) self.data = [[10,12,14,16,14,12], [6,8,10,12,9,11]] self.labels = None # or list of strings self.startAngle = 90 self.direction = "clockwise" self.strands = TypedPropertyCollection(StrandProperties) self.strands[0].fillColor = colors.cornsilk self.strands[1].fillColor = colors.cyan
def __init__(self): PlotArea.__init__(self) self.xAxis = XValueAxis() self.xAxis.gridStrokeColor = colors.black self.yAxis = YValueAxis() self.yAxis.gridStrokeColor = colors.black self.pointSets = TypedPropertyCollection(PointSetProperties) self.pointSets[0].fillColor = colors.blue self.pointSets[1].fillColor = colors.red self.pointSets[2].fillColor = colors.green self.pointSets[3].fillColor = colors.purple
def __init__(self): PlotArea.__init__(self) self.data = [[10,12,14,16,14,12], [6,8,10,12,9,11]] self.labels = None # or list of strings self.labels = ['a','b','c','d','e','f'] self.startAngle = 90 self.direction = "clockwise" self.strands = TypedPropertyCollection(StrandProperty) self.spokes = TypedPropertyCollection(SpokeProperty) self.spokeLabels = TypedPropertyCollection(SpokeLabel) self.spokeLabels._text = None self.strandLabels = TypedPropertyCollection(StrandLabel) self.x = 10 self.y = 10 self.width = 180 self.height = 180
def __init__(self): PlotArea.__init__(self) self.reversePlotOrder = 0 self.xValueAxis = XValueAxis() self.yValueAxis = YValueAxis() # this defines two series of 3 points. Just an example. self.data = [ ((1,1), (2,2), (2.5,1), (3,3), (4,5)), ((1,2), (2,3), (2.5,2), (3,4), (4,6)) ] self.lines = TypedPropertyCollection(LinePlotProperties) self.lines.strokeWidth = 1 self.lines[0].strokeColor = colors.red self.lines[1].strokeColor = colors.blue self.lineLabels = TypedPropertyCollection(Label) self.lineLabelFormat = None self.lineLabelArray = None # this says whether the origin is inside or outside # the bar - +10 means put the origin ten points # above the tip of the bar if value > 0, or ten # points inside if bar value < 0. This is different # to label dx/dy which are not dependent on the # sign of the data. self.lineLabelNudge = 10 # if you have multiple series, by default they butt # together. # New line chart attributes. self.joinedLines = 1 # Connect items with straight lines. #private attributes self._inFill = None self.annotations = [] self.behindAxes = 0 self.gridFirst = 0