def build(self):
box = BoxLayout()
graph = DemoGraph(points=[0, .2, 1, 0.25, 2, .4, 5, .5, 10, .6, 30, .5],
font_size=30,
line_width=5,
x_labels=['A', 'B', 'C', 'D'],
x_ticks=[0, 10, 20, 30],
y_ticks=[.1, .2, .5, .9],
max_y=1)
box.add_widget(graph)
return box
评论列表
文章目录