Matplotlib之axes图中图

编写代码画出下图所示的函数图:python 代码以下:函数 import matplotlib.pyplot as plt x=[1,2,3,4,5,6,7] y=[1,3,4,2,5,8,6] plt.figure() plt.axes([0.1,0.1,0.8,0.8]) #left=0.1,bottom=0.1,width=0.8,height=0.8 plt.plot(x,y,colo
相关文章
相关标签/搜索