本文整理汇总了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,