摘要: 1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 x = np.linspace(-3, 3, 50) 5 y1 = 2 * x + 1 6 y2 = x ** 2 7 8 plt.figure() 9 l1, = plt.plot(x, y1, color = "red", linewidth = 5.0... 阅读全文
posted @ 2019-07-25 21:25 小伙郭 阅读(1250) 评论(0) 推荐(0) 编辑
摘要: #坐标轴的移动 阅读全文
posted @ 2019-07-25 21:19 小伙郭 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 x = np.linspace(-3, 3, 50) 5 y1 = 2 * x + 1 6 y2 = x ** 2 7 8 #figure 1 9 plt.figure() 10 plt.plot(x, y1) 11 12 #figure 2 13 plt... 阅读全文
posted @ 2019-07-25 21:18 小伙郭 阅读(789) 评论(0) 推荐(0) 编辑