V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
gt11799
V2EX  ›  Python

这种图用 python 是怎么画出来的

  •  
  •   gt11799 · Oct 12, 2014 · 11263 views
    This topic created in 4219 days ago, the information mentioned may be changed or developed.
    图: http://pan.baidu.com/s/1i323rlb
    最近做了一个知乎的登录时间统计的网站,没想到做网站本身容易,图的美化和网站的排版着实让我伤透了脑筋。
    python上我最常用的就是matplotlib包,但是美化的事情以前不怎么考虑。如果能用matplotlib做出上图,线要怎么选?下面的阴影要怎么设置?
    如果有别的绘图包,或者常用的美化方法,也麻烦各位提醒一下小弟。
    10 replies    2014-10-13 01:40:32 +08:00
    SakuraSa
        1
    SakuraSa  
       Oct 12, 2014   ❤️ 1
    同求~
    不过网站上的图表展示我现在用的是[echarts](http://echarts.baidu.com/index.html)
    ozking
        2
    ozking  
       Oct 12, 2014
    网站画图不该在前端画么,Highcharts什么的
    frankzeng
        3
    frankzeng  
       Oct 12, 2014   ❤️ 1
    我看像是在前端画的,用js库画的
    gt11799
        4
    gt11799  
    OP
       Oct 12, 2014
    前端可以需要的时候再生成图吗?给一些数据就可以?效率如何?
    gt11799
        5
    gt11799  
    OP
       Oct 12, 2014
    @SakuraSa 哇,好爽的东西
    14
        6
    14  
       Oct 12, 2014
    貌似比较流行的是D3.js
    Github Star 30K+ https://github.com/mbostock/d3
    例子 http://bl.ocks.org/mbostock
    只用过例子稍微改改= =
    ChanneW
        8
    ChanneW  
       Oct 12, 2014
    在 osc 看到有人做 echarts 的 java 类了, 谁来做的 python 版的分享.
    reorx
        10
    reorx  
       Oct 13, 2014
    js:
    http://c3js.org/
    http://www.chartjs.org/
    http://www.highcharts.com/
    http://nvd3.org/
    http://trifacta.github.io/vega/

    python:
    http://pygal.org/
    https://github.com/HamsterHuey/easyplot
    以及 @jprovim 提到的 2 个也很不错

    其他一些 visualization/graph/chart 工具 (跟 lz 需求无关,扫 pinboard 的时候顺便拣出来的):
    http://datafart.com/
    http://plotdevice.io/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1581 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 00:01 · PVG 08:01 · LAX 17:01 · JFK 20:01
    ♥ Do have faith in what you're doing.