matplotlib基础
GJ_WL
这个作者很懒,什么都没留下…
展开
-
matplotlib_2_常见图形绘制
1.散点图 import matplotlib.pyplot as plt # 0.准备数据 x = [225.98, 247.07, 253.14, 457.85, 241.58, 301.01, 20.67, 288.64, 163.56, 120.06, 207.83, 342.75, 147.9, 53.06, 224.72, 29.51, 21.61, 483.21, 245.25, 399.25, 343.35] y = [196.63, 203.88, 210.75,原创 2020-08-28 11:55:08 · 127 阅读 · 0 评论 -
matplotlib_1_绘图功能介绍
1.图像基本绘制功能演示 import matplotlib.pyplot as plt import random # 1.生成数据 x = range(60) y_beijing = [random.uniform(10,15) for i in x] y_shanghai = [random.uniform(20,25) for i in x] # 2.创建画布 plt.figure(figsize=(20,5),dpi=100) # 3.绘制图像 # plt.plot(x,y,color="r"原创 2020-08-28 11:52:23 · 195 阅读 · 0 评论
分享