摘要:
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... 阅读全文
摘要:
#坐标轴的移动 阅读全文
摘要:
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... 阅读全文