-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ loosen the requirement on lml * 🔨 use moban 0.3.3 and apply isort and black * 🥚 🎡 release 0.1.9 * ✨ support EPS format
- Loading branch information
Showing
20 changed files
with
98,602 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{% extends "tests/requirements.txt.jj2" %} | ||
{%block extras %} | ||
pyecharts | ||
moban | ||
black;python_version>="3.6" | ||
isort;python_version>="3.6" | ||
{%endblock%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# coding=utf-8 | ||
from __future__ import unicode_literals | ||
|
||
from pyecharts import Bar, Grid, Line, Scatter, EffectScatter | ||
|
||
attr = ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"] | ||
v1 = [5, 20, 36, 10, 75, 90] | ||
v2 = [10, 25, 8, 60, 20, 80] | ||
bar = Bar("柱状图示例", height=720, width=1200, title_pos="65%") | ||
bar.add("商家A", attr, v1, is_stack=True) | ||
bar.add("商家B", attr, v2, is_stack=True, legend_pos="80%") | ||
line = Line("折线图示例") | ||
attr = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"] | ||
line.add( | ||
"最高气温", | ||
attr, | ||
[11, 11, 15, 13, 12, 13, 10], | ||
mark_point=["max", "min"], | ||
mark_line=["average"], | ||
) | ||
line.add( | ||
"最低气温", | ||
attr, | ||
[1, -2, 2, 5, 3, 2, 0], | ||
mark_point=["max", "min"], | ||
mark_line=["average"], | ||
legend_pos="20%", | ||
) | ||
v1 = [5, 20, 36, 10, 75, 90] | ||
v2 = [10, 25, 8, 60, 20, 80] | ||
scatter = Scatter("散点图示例", title_top="50%", title_pos="65%") | ||
scatter.add("scatter", v1, v2, legend_top="50%", legend_pos="80%") | ||
es = EffectScatter("动态散点图示例", title_top="50%") | ||
es.add( | ||
"es", | ||
[11, 11, 15, 13, 12, 13, 10], | ||
[1, -2, 2, 5, 3, 2, 0], | ||
effect_scale=6, | ||
legend_top="50%", | ||
legend_pos="20%", | ||
) | ||
|
||
grid = Grid() | ||
grid.add(bar, grid_bottom="60%", grid_left="60%") | ||
grid.add(line, grid_bottom="60%", grid_right="60%") | ||
grid.add(scatter, grid_top="60%", grid_left="60%") | ||
grid.add(es, grid_top="60%", grid_right="60%") | ||
grid.render(path="demo.eps", delay=3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,17 @@ organisation: "pyecharts" | |
author: "C.W." | ||
contact: "[email protected]" | ||
company: "Onni Software Ltd." | ||
version: "0.1.8" | ||
current_version: "0.1.8" | ||
release: "0.1.8" | ||
version: "0.1.9" | ||
current_version: "0.1.9" | ||
release: "0.1.9" | ||
copyright_year: 2017-2018 | ||
command_line_interface: "snapshot" | ||
entry_point: "pyecharts_snapshot.main:main" | ||
nodocs: true | ||
license: MIT | ||
dependencies: | ||
- pillow | ||
- lml==0.0.2 | ||
- lml>=0.0.2 | ||
keywords: | ||
- echarts | ||
- visualisation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pillow | ||
lml==0.0.2 | ||
lml>=0.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,15 @@ | |
import sys | ||
import codecs | ||
from shutil import rmtree | ||
from setuptools import setup, find_packages, Command | ||
|
||
from setuptools import Command, setup, find_packages | ||
|
||
PY2 = sys.version_info[0] == 2 | ||
PY26 = PY2 and sys.version_info[1] < 7 | ||
|
||
NAME = 'pyecharts-snapshot' | ||
AUTHOR = 'C.W.' | ||
VERSION = '0.1.8' | ||
VERSION = '0.1.9' | ||
EMAIL = '[email protected]' | ||
LICENSE = 'MIT' | ||
ENTRY_POINTS = { | ||
|
@@ -23,9 +25,10 @@ | |
'renders pyecharts output as image' | ||
) | ||
URL = 'https://github.com/pyecharts/pyecharts-snapshot' | ||
DOWNLOAD_URL = '%s/archive/0.1.8.tar.gz' % URL | ||
DOWNLOAD_URL = '%s/archive/0.1.9.tar.gz' % URL | ||
FILES = ['README.rst', 'CONTRIBUTORS.rst', 'CHANGELOG.rst'] | ||
KEYWORDS = [ | ||
'python', | ||
'echarts', | ||
'visualisation', | ||
'data', | ||
|
@@ -34,7 +37,6 @@ | |
'jpeg', | ||
'svg', | ||
'pdf', | ||
'python', | ||
] | ||
|
||
CLASSIFIERS = [ | ||
|
@@ -51,7 +53,7 @@ | |
|
||
INSTALL_REQUIRES = [ | ||
'pillow', | ||
'lml==0.0.2', | ||
'lml>=0.0.2', | ||
] | ||
SETUP_COMMANDS = {} | ||
|
||
|
@@ -62,8 +64,8 @@ | |
# You do not need to read beyond this line | ||
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format( | ||
sys.executable) | ||
GS_COMMAND = ('gs pyecharts-snapshot v0.1.8 ' + | ||
"Find 0.1.8 in changelog for more details") | ||
GS_COMMAND = ('gs pyecharts-snapshot v0.1.9 ' + | ||
"Find 0.1.9 in changelog for more details") | ||
NO_GS_MESSAGE = ('Automatic github release is disabled. ' + | ||
'Please install gease to enable it.') | ||
UPLOAD_FAILED_MSG = ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ codecov | |
coverage | ||
flake8 | ||
pyecharts | ||
moban | ||
black;python_version>="3.6" | ||
isort;python_version>="3.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import os | ||
|
||
from pyecharts import Bar | ||
from pyecharts_snapshot.environment import SnapshotEnvironment | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters