當前位置: 首頁>>代碼示例>>Python>>正文


Python areas.PlotArea類代碼示例

本文整理匯總了Python中reportlab.graphics.charts.areas.PlotArea的典型用法代碼示例。如果您正苦於以下問題:Python PlotArea類的具體用法?Python PlotArea怎麽用?Python PlotArea使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了PlotArea類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

    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
開發者ID:ShaulBarkan,項目名稱:PRION,代碼行數:25,代碼來源:piecharts.py

示例2: __init__

 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)
開發者ID:Aeium,項目名稱:dotStudio,代碼行數:7,代碼來源:widgets.py

示例3: __init__

    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
開發者ID:eaudeweb,項目名稱:naaya,代碼行數:34,代碼來源:lineplots.py

示例4: __init__

 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)
開發者ID:ziberleon,項目名稱:abejas,代碼行數:7,代碼來源:widgets.py

示例5: __init__

 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)
開發者ID:Jonnyliu,項目名稱:Malware_Analysis,代碼行數:10,代碼來源:widgets.py

示例6: __init__

    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
開發者ID:tschalch,項目名稱:pyTray,代碼行數:11,代碼來源:spider.py

示例7: __init__

    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
開發者ID:makinacorpus,項目名稱:reportlab-ecomobile,代碼行數:18,代碼來源:spider.py


注:本文中的reportlab.graphics.charts.areas.PlotArea類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。