- 博客(2)
- 收藏
- 关注
原创 matplotlib第二课
matplotlib作图代码网上很多,这里主要以理解其逻辑为主。 先导入库 import matplotlib.pyplot as plt import numpy as np 实现逻辑有两种 第一种是plt() fig=plt.figure(num=1,figsize=(4,4)) plt.plot([1,2,3,4],[1,2,3,4]) plt.show() # 使用plt添加子图 fig=plt.figure(num=1,figsize=(4,4)) plt.subplot(1.
2021-11-21 17:10:10 820
原创 初识matplotlib
学习代码: import matplotlib.pyplot as plt import numpy as np # fig, ax = plt.subplots() # 创建一个包含一个axes的figure # ax.plot([1, 2, 3, 4], [1, 4, 2, 3]) # 绘制图像 # plt.show() fig = plt.figure() # an empty figure with no Axes fig, ax = plt.subplots() # a figure wi.
2021-11-17 00:26:21 1232
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人