1import matplotlib.pyplot as plt
2
3fig = plt.figure()
4ax = fig.add_subplot(111)
5
6ax.annotate('test', xy=(0.9, 0.9),
7 xycoords='data',
8 xytext=(0, 0),
9 textcoords='data',
10 arrowprops=dict(arrowstyle= '<|-|>',
11 color='blue',
12 lw=3.5,
13 ls='--')
14 )
15
16ax.set_xlim(-0.1,1)
17ax.set_ylim(-0.1,1)
18fig.show()
19