17-annotate_simple01.py 371 B

12345678910111213141516171819
  1. """
  2. =================
  3. Annotate Simple01
  4. =================
  5. """
  6. import matplotlib.pyplot as plt
  7. fig, ax = plt.subplots(figsize=(3, 3))
  8. ax.annotate("",
  9. xy=(0.2, 0.2), xycoords='data',
  10. xytext=(0.8, 0.8), textcoords='data',
  11. arrowprops=dict(arrowstyle="->",
  12. connectionstyle="arc3"),
  13. )
  14. plt.show()