|
11 | 11 | s = np.cos(2*np.pi*t) |
12 | 12 | line, = ax.plot(t, s, lw=3, color='purple') |
13 | 13 |
|
14 | | - ax.annotate('arrowstyle', xy=(0, 1), xycoords='data', |
| 14 | + ax.annotate('arrowstyle', xy=(0, 1), xycoords='data', |
15 | 15 | xytext=(-50, 30), textcoords='offset points', |
16 | 16 | arrowprops=dict(arrowstyle="->") |
17 | 17 | ) |
18 | 18 |
|
19 | | - ax.annotate('arc3', xy=(0.5, -1), xycoords='data', |
| 19 | + ax.annotate('arc3', xy=(0.5, -1), xycoords='data', |
20 | 20 | xytext=(-30, -30), textcoords='offset points', |
21 | 21 | arrowprops=dict(arrowstyle="->", |
22 | 22 | connectionstyle="arc3,rad=.2") |
23 | 23 | ) |
24 | 24 |
|
25 | | - ax.annotate('arc', xy=(1., 1), xycoords='data', |
| 25 | + ax.annotate('arc', xy=(1., 1), xycoords='data', |
26 | 26 | xytext=(-40, 30), textcoords='offset points', |
27 | 27 | arrowprops=dict(arrowstyle="->", |
28 | 28 | connectionstyle="arc,angleA=0,armA=30,rad=10"), |
29 | 29 | ) |
30 | 30 |
|
31 | | - ax.annotate('arc', xy=(1.5, -1), xycoords='data', |
| 31 | + ax.annotate('arc', xy=(1.5, -1), xycoords='data', |
32 | 32 | xytext=(-40, -30), textcoords='offset points', |
33 | 33 | arrowprops=dict(arrowstyle="->", |
34 | 34 | connectionstyle="arc,angleA=0,armA=20,angleB=-90,armB=15,rad=7"), |
35 | 35 | ) |
36 | 36 |
|
37 | | - ax.annotate('angle', xy=(2., 1), xycoords='data', |
| 37 | + ax.annotate('angle', xy=(2., 1), xycoords='data', |
38 | 38 | xytext=(-50, 30), textcoords='offset points', |
39 | 39 | arrowprops=dict(arrowstyle="->", |
40 | 40 | connectionstyle="angle,angleA=0,angleB=90,rad=10"), |
41 | 41 | ) |
42 | 42 |
|
43 | | - ax.annotate('angle3', xy=(2.5, -1), xycoords='data', |
| 43 | + ax.annotate('angle3', xy=(2.5, -1), xycoords='data', |
44 | 44 | xytext=(-50, -30), textcoords='offset points', |
45 | 45 | arrowprops=dict(arrowstyle="->", |
46 | 46 | connectionstyle="angle3,angleA=0,angleB=-90"), |
47 | 47 | ) |
48 | 48 |
|
49 | | - ax.annotate('angle', xy=(3., 1), xycoords='data', |
| 49 | + ax.annotate('angle', xy=(3., 1), xycoords='data', |
50 | 50 | xytext=(-50, 30), textcoords='offset points', |
51 | 51 | bbox=dict(boxstyle="round", fc="0.8"), |
52 | 52 | arrowprops=dict(arrowstyle="->", |
53 | 53 | connectionstyle="angle,angleA=0,angleB=90,rad=10"), |
54 | 54 | ) |
55 | 55 |
|
56 | | - ax.annotate('angle', xy=(3.5, -1), xycoords='data', |
| 56 | + ax.annotate('angle', xy=(3.5, -1), xycoords='data', |
57 | 57 | xytext=(-70, -60), textcoords='offset points', |
58 | 58 | size=20, |
59 | 59 | bbox=dict(boxstyle="round4,pad=.5", fc="0.8"), |
60 | 60 | arrowprops=dict(arrowstyle="->", |
61 | 61 | connectionstyle="angle,angleA=0,angleB=-90,rad=10"), |
62 | 62 | ) |
63 | 63 |
|
64 | | - ax.annotate('angle', xy=(4., 1), xycoords='data', |
| 64 | + ax.annotate('angle', xy=(4., 1), xycoords='data', |
65 | 65 | xytext=(-50, 30), textcoords='offset points', |
66 | 66 | bbox=dict(boxstyle="round", fc="0.8"), |
67 | 67 | arrowprops=dict(arrowstyle="->", |
68 | 68 | shrinkA=0, shrinkB=10, |
69 | 69 | connectionstyle="angle,angleA=0,angleB=90,rad=10"), |
70 | 70 | ) |
71 | 71 |
|
72 | | - ann = ax.annotate('', xy=(4., 1.), xycoords='data', |
| 72 | + ann = ax.annotate('', xy=(4., 1.), xycoords='data', |
73 | 73 | xytext=(4.5, -1), textcoords='data', |
74 | 74 | arrowprops=dict(arrowstyle="<->", |
75 | 75 | connectionstyle="bar", |
|
87 | 87 | el = Ellipse((2, -1), 0.5, 0.5) |
88 | 88 | ax.add_patch(el) |
89 | 89 |
|
90 | | - ax.annotate('$->$', xy=(2., -1), xycoords='data', |
| 90 | + ax.annotate('$->$', xy=(2., -1), xycoords='data', |
91 | 91 | xytext=(-150, -140), textcoords='offset points', |
92 | 92 | bbox=dict(boxstyle="round", fc="0.8"), |
93 | 93 | arrowprops=dict(arrowstyle="->", |
94 | 94 | patchB=el, |
95 | 95 | connectionstyle="angle,angleA=90,angleB=0,rad=10"), |
96 | 96 | ) |
97 | 97 |
|
98 | | - ax.annotate('fancy', xy=(2., -1), xycoords='data', |
| 98 | + ax.annotate('fancy', xy=(2., -1), xycoords='data', |
99 | 99 | xytext=(-100, 60), textcoords='offset points', |
100 | 100 | size=20, |
101 | 101 | #bbox=dict(boxstyle="round", fc="0.8"), |
|
105 | 105 | connectionstyle="angle3,angleA=0,angleB=-90"), |
106 | 106 | ) |
107 | 107 |
|
108 | | - ax.annotate('simple', xy=(2., -1), xycoords='data', |
| 108 | + ax.annotate('simple', xy=(2., -1), xycoords='data', |
109 | 109 | xytext=(100, 60), textcoords='offset points', |
110 | 110 | size=20, |
111 | 111 | #bbox=dict(boxstyle="round", fc="0.8"), |
|
115 | 115 | connectionstyle="arc3,rad=0.3"), |
116 | 116 | ) |
117 | 117 |
|
118 | | - ax.annotate('wedge', xy=(2., -1), xycoords='data', |
| 118 | + ax.annotate('wedge', xy=(2., -1), xycoords='data', |
119 | 119 | xytext=(-100, -100), textcoords='offset points', |
120 | 120 | size=20, |
121 | 121 | #bbox=dict(boxstyle="round", fc="0.8"), |
|
125 | 125 | connectionstyle="arc3,rad=-0.3"), |
126 | 126 | ) |
127 | 127 |
|
128 | | - ann = ax.annotate('wedge', xy=(2., -1), xycoords='data', |
| 128 | + ann = ax.annotate('wedge', xy=(2., -1), xycoords='data', |
129 | 129 | xytext=(0, -45), textcoords='offset points', |
130 | 130 | size=20, |
131 | 131 | bbox=dict(boxstyle="round", fc=(1.0, 0.7, 0.7), ec=(1., .5, .5)), |
|
137 | 137 | connectionstyle="arc3,rad=-0.1"), |
138 | 138 | ) |
139 | 139 |
|
140 | | - ann = ax.annotate('wedge', xy=(2., -1), xycoords='data', |
| 140 | + ann = ax.annotate('wedge', xy=(2., -1), xycoords='data', |
141 | 141 | xytext=(35, 0), textcoords='offset points', |
142 | 142 | size=20, va="center", |
143 | 143 | bbox=dict(boxstyle="round", fc=(1.0, 0.7, 0.7), ec="none"), |
|
0 commit comments