matplotlib之画中画--在图中画子图
'''Author: 365JHWZGoDescription: 画中画Date: 2021/11/5 20:21FilePath: day1105-4.py'''首先第一步是画出外边的plot,效果图如图片所示import numpy as npimport matplotlib.pyplot as pltx = np.linspace(1,10,10)y = x + np.random.randint(-5,5,10)#method1:use figurefig = pl