import matplotlib.pyplot as plt
fig, ax = plt.subplots()
# 四角形とテキスト
ax.text(0.5, 0.8, 'A', ha='center', va='center', bbox=dict(facecolor='lightblue'))
ax.text(0.4, 0.8, 'B', ha='center', va='center', bbox=dict(facecolor='lightgreen'))
ax.text(0.5, 0.4, 'C', ha='center', va='center', bbox=dict(facecolor='lightpink'))
# 矢印
ax.annotate('', xy=(0.5, 0.65), xytext=(0.5, 0.75), arrowprops=dict(arrowstyle="->"))
ax.annotate('', xy=(0.5, 0.45), xytext=(0.5, 0.55), arrowprops=dict(arrowstyle="->"))
ax.set_xlim(0, 1)
ax.set_ylim(0, 1)
ax.axis('off')
plt.show()
To embed this project on your website, copy the following code and paste it into your website's HTML: