Skip to content

Commit 7cd4cff

Browse files
authored
release 0.1.9 (#31)
* ✨ loosen the requirement on lml * 🔨 use moban 0.3.3 and apply isort and black * 🥚 🎡 release 0.1.9 * ✨ support EPS format
1 parent 7861bd5 commit 7cd4cff

20 files changed

+98602
-28
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{% extends "tests/requirements.txt.jj2" %}
22
{%block extras %}
33
pyecharts
4+
moban
5+
black;python_version>="3.6"
6+
isort;python_version>="3.6"
47
{%endblock%}

.moban.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
requires:
2+
- type: git
3+
url: https://github.com/moremoban/pypi-mobans
4+
submodule: true
15
configuration:
26
template_dir:
3-
- "setupmobans/templates"
7+
- "pypi-mobans:templates"
48
- ".moban.d"
59
configuration: pyecharts-snapshot.yml
610
targets:

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change log
22
================================================================================
33

4+
0.1.9 - 13.11.2018
5+
--------------------------------------------------------------------------------
6+
7+
Updated
8+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9+
10+
#. Loosen the requirement on lml
11+
412
0.1.8 - 12.09.2018
513
--------------------------------------------------------------------------------
614

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ test:
55

66
demo:
77
bash images.sh
8+
9+
format:
10+
isort -y $(find pyecharts_snapshot -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
11+
black -l 79 pyecharts_snapshot
12+
black -l 79 tests

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ pyecharts-snapshot
1111
Introduction
1212
================================================================================
1313

14-
pyecharts-snapshot renders the output of pyecharts as a png, jpeg, gif, svg image or
15-
a pdf file at command line or in your code.
14+
pyecharts-snapshot renders the output of pyecharts as a png, jpeg, gif, eps, svg
15+
image or a pdf file at command line or in your code.
1616

1717

1818
Please be aware of its dependency on **phantom.js**.

changelog.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: pyecharts-snapshot
22
organisation: pyecharts
33
releases:
4+
- changes:
5+
- action: Added
6+
details:
7+
- 'Support eps'
8+
- action: Updated
9+
details:
10+
- 'Loosen the requirement on lml'
11+
date: 13.11.2018
12+
version: 0.1.9
413
- changes:
514
- action: Fixed
615
details:

examples/bar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# coding=utf-8
22
from __future__ import unicode_literals
3+
34
from pyecharts import Bar
45

56
attr = ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]

examples/demo.eps

Lines changed: 98479 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/demo.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# coding=utf-8
2+
from __future__ import unicode_literals
3+
4+
from pyecharts import Bar, Grid, Line, Scatter, EffectScatter
5+
6+
attr = ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
7+
v1 = [5, 20, 36, 10, 75, 90]
8+
v2 = [10, 25, 8, 60, 20, 80]
9+
bar = Bar("柱状图示例", height=720, width=1200, title_pos="65%")
10+
bar.add("商家A", attr, v1, is_stack=True)
11+
bar.add("商家B", attr, v2, is_stack=True, legend_pos="80%")
12+
line = Line("折线图示例")
13+
attr = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"]
14+
line.add(
15+
"最高气温",
16+
attr,
17+
[11, 11, 15, 13, 12, 13, 10],
18+
mark_point=["max", "min"],
19+
mark_line=["average"],
20+
)
21+
line.add(
22+
"最低气温",
23+
attr,
24+
[1, -2, 2, 5, 3, 2, 0],
25+
mark_point=["max", "min"],
26+
mark_line=["average"],
27+
legend_pos="20%",
28+
)
29+
v1 = [5, 20, 36, 10, 75, 90]
30+
v2 = [10, 25, 8, 60, 20, 80]
31+
scatter = Scatter("散点图示例", title_top="50%", title_pos="65%")
32+
scatter.add("scatter", v1, v2, legend_top="50%", legend_pos="80%")
33+
es = EffectScatter("动态散点图示例", title_top="50%")
34+
es.add(
35+
"es",
36+
[11, 11, 15, 13, 12, 13, 10],
37+
[1, -2, 2, 5, 3, 2, 0],
38+
effect_scale=6,
39+
legend_top="50%",
40+
legend_pos="20%",
41+
)
42+
43+
grid = Grid()
44+
grid.add(bar, grid_bottom="60%", grid_left="60%")
45+
grid.add(line, grid_bottom="60%", grid_right="60%")
46+
grid.add(scatter, grid_top="60%", grid_left="60%")
47+
grid.add(es, grid_top="60%", grid_right="60%")
48+
grid.render(path="demo.eps", delay=3)

examples/grid.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# coding=utf-8
22
from __future__ import unicode_literals
3-
from pyecharts import Bar, Line, Scatter, EffectScatter, Grid
3+
4+
from pyecharts import Bar, Grid, Line, Scatter, EffectScatter
45

56
attr = ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
67
v1 = [5, 20, 36, 10, 75, 90]

0 commit comments

Comments
 (0)