数据可视化 (一) matplotlib.pyplot基础知识
文中将matplotlib.pyplot简称为plt
plt的基本用法
1. Figure对象
matplotlib的图像都位于Figure对象中,我们可以调用plt.figure()来创建Figure对象。
fig = plt.figure()
figure有一个比较重要的参数figsize,它衡量图片的大小和纵横比(单位为inch):
fig = plt.figure(figs...
原创
2019-06-04 16:53:42 ·
465 阅读 ·
0 评论