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


Python XCategoryAxis.valueSteps方法代码示例

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


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

示例1: Drawing

# 需要导入模块: from reportlab.graphics.charts.axes import XCategoryAxis [as 别名]
# 或者: from reportlab.graphics.charts.axes.XCategoryAxis import valueSteps [as 别名]
xAxis.labels.boxAnchor = 'n'

drawing.add(xAxis)
""")


from reportlab.graphics import shapes
from reportlab.graphics.charts.axes import XValueAxis

drawing = Drawing(400, 100)

data = [(10, 20, 30, 40)]

xAxis = XValueAxis()
xAxis.setPosition(75, 50, 300)
xAxis.valueSteps = [10, 15, 20, 30, 35, 40]
xAxis.configure(data)
xAxis.labels.boxAnchor = 'n'

drawing.add(xAxis)

draw(drawing, 'An axis with non-equidistant tick marks')


disc("""
In addition to these properties, all axes classes have three
properties describing how to join two of them to each other.
Again, this is interesting only if you define your own charts
or want to modify the appearance of an existing chart using
such axes.
These properties are listed here only very briefly for now,
开发者ID:makinacorpus,项目名称:reportlab-ecomobile,代码行数:33,代码来源:graph_charts.py


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