Skip to content

Commit

Permalink
Remove pil (pyecharts#755)
Browse files Browse the repository at this point in the history
* Remove: 移除 pillow 作为必要依赖

* Docs: 文档更新

* Update: Remove -> Removed
  • Loading branch information
chenjiandongx authored Sep 9, 2018
1 parent 804f82b commit a09feee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion docs/zh-cn/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
* ### version 0.6.0(dev)
* TODO

* ### version 0.5.11 - (dev
* ### version 0.5.11 - 2018.9.9(current

#### Added
* [issue#731](https://github.com/pyecharts/pyecharts/issues/731) 新增 `mark_point_raw`, `mark_line_raw` 配置项用于个性化展示标记。

#### Fixed
* [issue#738](https://github.com/pyecharts/pyecharts/issues/738) 支持设置 Grid, Overlay 和 Timeline 某选项为空 (null)

#### Removed
* 移除 pillow 作为默认依赖,需要用到 Scatter.draw 方法的开发者请先自行安装 pillow。


* ### version 0.5.10 - 2018.9.4
Expand Down
6 changes: 4 additions & 2 deletions pyecharts/charts/scatter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# coding=utf-8

from PIL import Image

from pyecharts.chart import Chart


Expand Down Expand Up @@ -91,6 +89,10 @@ def draw(self, path, color=None):
:return:
转换后的数组
"""
try:
from PIL import Image
except ImportError:
raise
color = color or (255, 255, 255)
im = Image.open(path)
width, height = im.size
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
jinja2>=2.8
future
pillow
lml>=0.0.2
jupyter-echarts-pypkg>=0.1.1
pyecharts-javascripthon

0 comments on commit a09feee

Please sign in to comment.