原博文
2020-05-09 22:23 −
1、加载库
import matplotlib as mpl
import matplotlib.pyplot as plt
2、单层圆环饼图
# 配置字体,显示中文
mpl.rcParams['font.sans-serif'] = ['SimHei']
# 配置坐标轴刻度值...
![comment.png](https://recomm.cnblogs.com/images/comment.png)
0
![attention.png](https://recomm.cnblogs.com/images/attention.png)
642
相关推荐
2019-12-09 15:16 −
I、饼状图
1、pyplot.pie函数
matplotlib.pyplot.pie(x, explode=None, labels=None, colors=None, autopct=None, pctdistance=0.6, shadow=False, labeldistance=1.1,...
2019-12-05 16:35 −
matplotlib模块是python中一个强大的绘图模块
安装 pip install matplotlib
首先我们来画一个简单的图来感受它的神奇
import numpy as np
import matplotlib.pyplot as plt
import matp...
2019-12-11 18:08 −
y=2x+3