matplotlib4 详解 复杂图形

lesson17两根坐标轴 x= np.arange(2,20,1) y1 = x*x y2 = np.log(x) plt.plot(x,y1) plt.twinx() plt.plot(x,y2,color ='r') plt.show() 面向对象的做法 x= np.arange(2,20,1) y1 = x*x y2 = np.log(x) fig = plt.figure() ax1=
相关文章
相关标签/搜索