锚定Box01

import matplotlib.pyplot as pltfrom matplotlib.offsetbox import AnchoredTextfig, ax = plt.subplots(figsize=(3, 3))at = AnchoredText("Figure 1a",prop=dict(size=15), frameon=True, loc='upper left')at.patch.set_boxstyle("round,pad=0.,rounding_size=0.2")ax.add_artist(at)plt.show()
