matplotlib 详解3 面向对象

1. 面向对象 importmatplotlib.pyplot as plt importnumpy as np x=np.arange(0,10,1) y=np.random.randn(len(x)) fig=plt.figure() ax=fig.add_subplot(111) l,=plt.plot(x,y) t =ax.set_title('object oriented') plt.
相关文章
相关标签/搜索