锚定Box02

from matplotlib.patches import Circleimport matplotlib.pyplot as pltfrom mpl_toolkits.axes_grid1.anchored_artists import AnchoredDrawingAreafig, ax = plt.subplots(figsize=(3, 3))ada = AnchoredDrawingArea(40, 20, 0, 0,loc='upper right', pad=0., frameon=False)p1 = Circle((10, 10), 10)ada.drawing_area.add_artist(p1)p2 = Circle((30, 10), 5, fc="r")ada.drawing_area.add_artist(p2)ax.add_artist(ada)plt.show()
