本文整理汇总了Python中reportlab.graphics.charts.piecharts.Pie.strokeColor方法的典型用法代码示例。如果您正苦于以下问题:Python Pie.strokeColor方法的具体用法?Python Pie.strokeColor怎么用?Python Pie.strokeColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类reportlab.graphics.charts.piecharts.Pie
的用法示例。
在下文中一共展示了Pie.strokeColor方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: plpleg
# 需要导入模块: from reportlab.graphics.charts.piecharts import Pie [as 别名]
# 或者: from reportlab.graphics.charts.piecharts.Pie import strokeColor [as 别名]
def plpleg(i=None):
from reportlab.lib.colors import pink, red, green
pie = Pie()
pie.x = 0
pie.y = 0
pie.pointerLabelMode='LeftAndRight'
pie.slices.label_boxStrokeColor = red
pie.simpleLabels = 0
pie.sameRadii = 1
pie.data = [1, 0.1, 1.7, 4.2,0,0]
pie.labels = ['abcdef', 'b', 'c', 'd','e','fedcba']
pie.strokeWidth=1
pie.strokeColor=green
pie.slices.label_pointer_piePad = 6
pie.width = 160
pie.direction = 'clockwise'
pie.pointerLabelMode = 'LeftRight'
return autoLegender(i,pie,pie.slices,None)
示例2: plpleg
# 需要导入模块: from reportlab.graphics.charts.piecharts import Pie [as 别名]
# 或者: from reportlab.graphics.charts.piecharts.Pie import strokeColor [as 别名]
def plpleg(i=None):
from reportlab.lib.colors import pink, red, green
pie = Pie()
pie.x = 0
pie.y = 0
pie.pointerLabelMode = "LeftAndRight"
pie.slices.label_boxStrokeColor = red
pie.simpleLabels = 0
pie.sameRadii = 1
pie.data = [1, 0.1, 1.7, 4.2, 0, 0]
pie.labels = ["abcdef", "b", "c", "d", "e", "fedcba"]
pie.strokeWidth = 1
pie.strokeColor = green
pie.slices.label_pointer_piePad = 6
pie.width = 160
pie.direction = "clockwise"
pie.pointerLabelMode = "LeftRight"
return autoLegender(i, pie, pie.slices, None)