本文整理汇总了Python中reportlab.graphics.charts.axes.XValueAxis.joinAxisMode方法的典型用法代码示例。如果您正苦于以下问题:Python XValueAxis.joinAxisMode方法的具体用法?Python XValueAxis.joinAxisMode怎么用?Python XValueAxis.joinAxisMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类reportlab.graphics.charts.axes.XValueAxis
的用法示例。
在下文中一共展示了XValueAxis.joinAxisMode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: sample4d
# 需要导入模块: from reportlab.graphics.charts.axes import XValueAxis [as 别名]
# 或者: from reportlab.graphics.charts.axes.XValueAxis import joinAxisMode [as 别名]
def sample4d():
"Sample drawing, xvalue/yvalue axes, y connected to top of x."
drawing = Drawing(400, 200)
data = [(10, 20, 30, 42)]
yAxis = YValueAxis()
yAxis.setPosition(50, 50, 125)
yAxis.configure(data)
xAxis = XValueAxis()
xAxis._length = 300
xAxis.joinAxis = yAxis
xAxis.joinAxisMode = 'top'
xAxis.configure(data)
drawing.add(xAxis)
drawing.add(yAxis)
return drawing
示例2: sample4c1
# 需要导入模块: from reportlab.graphics.charts.axes import XValueAxis [as 别名]
# 或者: from reportlab.graphics.charts.axes.XValueAxis import joinAxisMode [as 别名]
def sample4c1():
"xvalue/yvalue axes, without drawing axis lines/ticks."
drawing = Drawing(400, 200)
data = [(10, 20, 30, 42)]
yAxis = YValueAxis()
yAxis.setPosition(50, 50, 125)
yAxis.configure(data)
yAxis.visibleAxis = 0
yAxis.visibleTicks = 0
xAxis = XValueAxis()
xAxis._length = 300
xAxis.joinAxis = yAxis
xAxis.joinAxisMode = 'bottom'
xAxis.configure(data)
xAxis.visibleAxis = 0
xAxis.visibleTicks = 0
drawing.add(xAxis)
drawing.add(yAxis)
return drawing