当前位置: 首页>>代码示例>>Python>>正文


Python PlotArea.__init__方法代码示例

本文整理汇总了Python中reportlab.graphics.charts.areas.PlotArea.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python PlotArea.__init__方法的具体用法?Python PlotArea.__init__怎么用?Python PlotArea.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在reportlab.graphics.charts.areas.PlotArea的用法示例。


在下文中一共展示了PlotArea.__init__方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from reportlab.graphics.charts.areas import PlotArea [as 别名]
# 或者: from reportlab.graphics.charts.areas.PlotArea import __init__ [as 别名]
    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,代码行数:27,代码来源:piecharts.py

示例2: __init__

# 需要导入模块: from reportlab.graphics.charts.areas import PlotArea [as 别名]
# 或者: from reportlab.graphics.charts.areas.PlotArea import __init__ [as 别名]
 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,代码行数:9,代码来源:widgets.py

示例3: __init__

# 需要导入模块: from reportlab.graphics.charts.areas import PlotArea [as 别名]
# 或者: from reportlab.graphics.charts.areas.PlotArea import __init__ [as 别名]
    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,代码行数:36,代码来源:lineplots.py

示例4: __init__

# 需要导入模块: from reportlab.graphics.charts.areas import PlotArea [as 别名]
# 或者: from reportlab.graphics.charts.areas.PlotArea import __init__ [as 别名]
 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,代码行数:9,代码来源:widgets.py

示例5: __init__

# 需要导入模块: from reportlab.graphics.charts.areas import PlotArea [as 别名]
# 或者: from reportlab.graphics.charts.areas.PlotArea import __init__ [as 别名]
 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,代码行数:12,代码来源:widgets.py

示例6: __init__

# 需要导入模块: from reportlab.graphics.charts.areas import PlotArea [as 别名]
# 或者: from reportlab.graphics.charts.areas.PlotArea import __init__ [as 别名]
    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,代码行数:13,代码来源:spider.py

示例7: __init__

# 需要导入模块: from reportlab.graphics.charts.areas import PlotArea [as 别名]
# 或者: from reportlab.graphics.charts.areas.PlotArea import __init__ [as 别名]
    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,代码行数:20,代码来源:spider.py


注:本文中的reportlab.graphics.charts.areas.PlotArea.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。