Matplotlib:設置座標軸

import matplotlib.pyplot as plt import numpy as np x = np.linspace(-3,3,50) y1 = x3 y2 = x2+2*x+2 #第一個圖像 plt.figure() plt.plot(x,y1,color=‘red’,linestyle=’–’) #第二個圖像 plt.figure() plt.plot(x,y1) plt.pl
相關文章
相關標籤/搜索