1"""
2=======================
3Annotate Simple Coord01
4=======================
5
6"""
7
8import matplotlib.pyplot as plt
9
10fig, ax = plt.subplots(figsize=(3, 2))
11an1 = ax.annotate("Test 1", xy=(0.5, 0.5), xycoords="data",
12                  va="center", ha="center",
13                  bbox=dict(boxstyle="round", fc="w"))
14an2 = ax.annotate("Test 2", xy=(1, 0.5), xycoords=an1,
15                  xytext=(30, 0), textcoords="offset points",
16                  va="center", ha="left",
17                  bbox=dict(boxstyle="round", fc="w"),
18                  arrowprops=dict(arrowstyle="->"))
19plt.show()
20