![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据可视化
sabcasjkd
是只小猴子
展开
-
[数据可视化-笔记05] Python&Leather多图Grid
实现 data1 = [(1, 3),(2, 5),(3, 3),(5, 2)] data2 = [(3, 4),(5, 6),(7, 10),(8, 2)] chart1 = leather.Chart('Dots') chart1.add_dots(data1, fill_color="blue") chart2 = leather.Chart('Lines') chart2.add_line(data2, stroke_color="red") grid = leather.Grid() g.原创 2021-04-18 19:16:59 · 72 阅读 · 0 评论 -
[数据可视化-笔记04] Python&Leather画柱状图
API如下: add_columns(data, x=None, y=None, name=None, fill_color=None) 实现: import leather # 数据 data1 = [['A',2],['B',3],['C',1],['D',4],['E',5],['F',2]] # 可视化 chart = leather.Chart("My Column Chart") chart.add_columns(data1, fill_color="red") chart.add_y原创 2021-04-18 19:03:51 · 89 阅读 · 0 评论 -
[数据可视化-笔记03] Python&Leather画条形图
API如下: add_bars(data, x=None, y=None, name=None, fill_color=None) 实现: import leather # 数据 data1 = [[2,'A'],[3,'B'],[1,'C'],[4,'D']] # 可视化 chart = leather.Chart("My Bar Chart") chart.add_bars(data1, fill_color="blue") chart.add_x_scale(0,5) # 显示图像 chart原创 2021-04-18 18:59:02 · 92 阅读 · 0 评论 -
[数据可视化-笔记02] Python&Leather画折线图
API如下: add_line(data, x=None, y=None, name=None, stroke_color=None, width=None) 实现: import leather # 数据 data1 = [[1.5,2],[2,3.5],[3,2.5],[4,4.8],[5,1.2]] data2 = [[1.5,2],[2.3,4],[3,3],[4,2.3],[5,0.9]] # 可视化 chart = leather.Chart("My Line Chart") chart原创 2021-04-17 20:42:56 · 97 阅读 · 0 评论 -
[数据可视化-笔记01] Python&Leather画点图
API如下: add_dots(data, x=None, y=None, name=None, fill_color=None, radius=None) 实现: import leather # 数据 data1 = [[1.5,2],[2,3.5],[1.8,2.5],[3.3,4.8],[0.9,1.2]] data2 = [[2.6,2],[2.4,1.3],[4.8,2.5],[1.1,2.3],[4.8,0.9]] # 可视化 chart = leather.Chart("My Cha原创 2021-04-17 20:28:40 · 146 阅读 · 0 评论