以下是我从已发表的论文here
中剪裁的图我试图模仿绘图,但未能用阴影框绘制子图标题 A 。
我考虑过一个替代解决方案:
import matplotlib.patches as patches
import matplotlib.pyplot as plt
fig = plt.figure()
ax = plt.subplot()
ax.text(0.1,0.55,'A',fontsize =14,transform=ax.transAxes,bbox=dict(boxstyle="square",ec = 'k',fc = '#FFFFFF') )
# Create a Rectangle patch
rect = patches.Rectangle((0.1,0.5),0.05,0.1,linewidth=1,edgecolor='k',facecolor='k')
# Add the patch to the Axes
ax.add_patch(rect)
但是,盒子呈矩形。有没有更好的方法来重现第一个数字?任何建议将不胜感激。