![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
可视化
thfyshz
一花一世界
展开
-
pygal文档——条形图
条形图 基本操作 import pygal from IPython.display import SVG line_chart = pygal.Bar() line_chart.title = 'Browser usage evolution (in %)' line_chart.x_labels = map(str, range(2002, 2013)) line_chart.add('Fir...原创 2018-11-16 00:04:44 · 397 阅读 · 0 评论 -
pygal文档——first steps
pygal官方文档 第一步 注意:首先需要安装pygal包:pip install pygal import pygal # First import pygal bar_chart = pygal.Bar() ...原创 2018-11-14 11:09:24 · 618 阅读 · 0 评论 -
pygal文档——XY图(二)
日期 datetime格式 import pygal from IPython.display import SVG from datetime import datetime datetimeline = pygal.DateTimeLine( x_label_rotation=35, truncate_label=-1, x_value_formatter=lambda dt:...原创 2018-11-20 15:13:51 · 256 阅读 · 0 评论 -
pygal文档——饼状图
基本操作 import pygal from IPython.display import SVG pie_chart = pygal.Pie() pie_chart.title = 'Browser usage in February 2012 (in %)' pie_chart.add('IE', 19.5) pie_chart.add('Firefox', 36.6) pie_chart.a...原创 2018-11-21 11:09:18 · 959 阅读 · 1 评论 -
pygal文档——直方图
基本操作 import pygal from IPython.display import SVG hist = pygal.Histogram() hist.add('Wide bars', [(5, 0, 10), (4, 5, 13), (2, 0, 15)]) hist.add('Narrow bars', [(10, 1, 2), (12, 4, 4.5), (8, 11, 13)])...原创 2018-11-17 00:01:42 · 213 阅读 · 0 评论 -
pygal文档——折线图
折线图 基础 import pygal from IPython.display import SVG line_chart = pygal.Line() line_chart.title = 'Browser usage evolution (in %)' line_chart.x_labels = map(str, range(2002, 2013)) line_chart.add('Fire...原创 2018-11-15 10:32:20 · 1694 阅读 · 0 评论 -
pygal文档——XY图(一)
基础知识 import pygal from IPython.display import SVG from math import cos xy_chart = pygal.XY() xy_chart.title = 'XY Cosinus' xy_chart.add('x = cos(y)', [(cos(x / 10.), x / 10.) for x in range(-50, 50,...原创 2018-11-19 14:52:23 · 1091 阅读 · 0 评论 -
pygal文档——雷达图
画雷达图 import pygal from IPython.display import SVG radar_chart = pygal.Radar() radar_chart.title = 'V8 benchmark results' radar_chart.x_labels = ['Richards', 'DeltaBlue', 'Crypto', 'RayTrace', 'EarleyB...原创 2018-11-22 10:38:26 · 1042 阅读 · 0 评论 -
pygal文档——箱型图
import pygal from IPython.display import SVG box_plot = pygal.Box() box_plot.title = 'V8 benchmark results' box_plot.add('Chrome', [6395, 8212, 7520, 7218, 12464, 1660, 2123, 8607]) box_plot.add('Fire...原创 2018-11-23 20:35:55 · 404 阅读 · 0 评论