From 0258605d7429004f5cd2eea125fa03cb154690fc Mon Sep 17 00:00:00 2001 From: chenjiandongx Date: Sun, 22 Oct 2017 00:18:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81=E6=95=B4?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_line.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test_line.py b/test/test_line.py index 60d922ce..dea69e5c 100644 --- a/test/test_line.py +++ b/test/test_line.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals from pyecharts import Line -from test.constants import CLOTHES +from test.constants import CLOTHES, WEEK clothes_v1 = [5, 20, 36, 10, 10, 100] @@ -41,11 +41,10 @@ def test_line_user_define_marks(): def test_line_negative_value(): - attr = ['周一', '周二', '周三', '周四', '周五', '周六', '周日'] line = Line("折线图示例") - line.add("最高气温", attr, [11, 11, 15, 13, 12, 13, 10], + line.add("最高气温", WEEK, [11, 11, 15, 13, 12, 13, 10], mark_point=["max", "min"], mark_line=["average"]) - line.add("最低气温", attr, [1, -2, 2, 5, 3, 2, 0], + line.add("最低气温", WEEK, [1, -2, 2, 5, 3, 2, 0], mark_point=["max", "min"], mark_line=["average"]) line.render()