1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
fig, ax = plt.subplots(3, 5, figsize = (16, 10), sharex = True, sharey = True)
x1, y1 = 0.3, 0.2
x2, y2 = 0.8, 0.6
bbox = dict(boxstyle = "square", facecolor = "w", edgecolor = "k")
# subplot(3,5,1)
ax[0, 0].plot([x1, x2], [y1, y2], ".")
ax[0, 0].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "angle, angleA = 0, angleB = 90, rad = 5"))
ax[0, 0].text(0.05, 0.95, "angle, \nangleA = 0, \nangleB = 90, \nrad = 5", ha = "left", va = "top", bbox = bbox)
ax[0, 0].set_xlim(0, 1)
ax[0, 0].set_ylim(0, 1)
ax[0, 0].set_xticklabels([])
ax[0, 0].set_yticklabels([])
# subplot(3,5,6)
ax[1, 0].plot([x1, x2], [y1, y2], ".")
ax[1,0].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "angle, angleA = 20, angleB = 50, rad = 10"))
ax[1, 0].text(0.05, 0.95, "angle, \nangleA=20, \nangleB = 50, \nrad = 10", ha = "left", va = "top", bbox = bbox)
ax[1, 0].set_xlim(0, 1)
ax[1, 0].set_ylim(0, 1)
ax[1, 0].set_xticklabels([])
ax[1, 0].set_yticklabels([])
# subplot(3,5,11)
ax[2, 0].plot([x1, x2], [y1, y2], ".")
ax[2, 0].annotate("", xy=(x1, y1), xycoords = "data", xytext = (x2,y2), textcoords = "data",
arrowprops=dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "angle, angleA = -90, angleB = 0, rad = 0.0"))
ax[2, 0].text(0.05, 0.95, "angle, \nangleA=-90, \nangleB=0, \nrad = 0.0", ha = "left", va = "top" ,bbox = bbox)
ax[2, 0].set_xlim(0, 1)
ax[2, 0].set_ylim(0, 1)
ax[2, 0].set_xticklabels([])
ax[2, 0].set_yticklabels([])
# subplot(3,5,2)
ax[0, 1].plot([x1, x2], [y1, y2], ".")
ax[0, 1].annotate("", xy=(x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "angle3, angleA = 90, angleB = 0"))
ax[0, 1].text(0.05, 0.95, "angle3, \nangleA=90, \nangleB = 0", ha = "left", va = "top", bbox = bbox)
ax[0, 1].set_xlim(0, 1)
ax[0, 1].set_ylim(0, 1)
ax[0, 1].set_xticklabels([])
ax[0, 1].set_yticklabels([])
# subplot(3,5,7)
ax[1, 1].plot([x1, x2], [y1, y2], ".")
ax[1, 1].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "angle3, angleA = 0, angleB = 90"))
ax[1, 1].text(0.05, 0.95, "angle3, \nangleA = 0, \nangleB = 90", ha = "left", va = "top", bbox = bbox)
ax[1, 1].set_xlim(0, 1)
ax[1, 1].set_ylim(0, 1)
ax[1, 1].set_xticklabels([])
ax[1, 1].set_yticklabels([])
# subplot(3,5,12)
ax[2, 1].plot([x1, x2], [y1, y2], ".")
ax[2, 1].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color="gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "angle3, angleA = 20, angleB = 60"))
ax[2, 1].text(0.05, 0.95, "angle3, \nangleA = 20, \nangleB = 60", ha = "left", va = "top", bbox = bbox)
ax[2, 1].set_xlim(0, 1)
ax[2, 1].set_ylim(0, 1)
ax[2, 1].set_xticklabels([])
ax[2, 1].set_yticklabels([])
# subplot(3,5,3)
ax[0, 2].plot([x1, x2], [y1, y2], ".")
ax[0, 2].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "arc, angleA = -90, armA = 30, angleB = 0, \
armB = 30, rad = 0.0"))
ax[0, 2].text(0.05, 0.95, "arc, \nangleA = -90, \narmA = 30, \nangleB = 0, \narmB = 30, \nrad = 0.0",
ha = "left", va = "top", bbox = bbox)
ax[0, 2].set_xlim(0, 1)
ax[0, 2].set_ylim(0, 1)
ax[0, 2].set_xticklabels([])
ax[0, 2].set_yticklabels([])
# subplot(3,5,8)
ax[1, 2].plot([x1, x2], [y1, y2], ".")
ax[1, 2].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "arc, angleA = -90, armA = 30, angleB = 0, \
armB = 30, rad = 3"))
ax[1, 2].text(0.05, 0.95, "arc, \nangleA = -90, \narmA = 30, \nangleB = 0, \narmB = 30, \nrad = 3",
ha = "left", va = "top", bbox = bbox)
ax[1, 2].set_xlim(0, 1)
ax[1, 2].set_ylim(0, 1)
ax[1, 2].set_xticklabels([])
ax[1, 2].set_yticklabels([])
# subplot(3,5,13)
ax[2, 2].plot([x1, x2], [y1, y2], ".")
ax[2, 2].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "arc, angleA = 100, armA = 0, angleB = 20, \
armB = 50, rad = 10"))
ax[2, 2].text(0.05, 0.95, "arc, \nangleA = 100, \narmA = 0, \nangleB = 20, \narmB = 50, \nrad = 10",
ha = "left", va = "top", bbox = bbox)
ax[2, 2].set_xlim(0, 1)
ax[2, 2].set_ylim(0, 1)
ax[2, 2].set_xticklabels([])
ax[2, 2].set_yticklabels([])
# subplot(3,5,4)
ax[0, 3].plot([x1, x2], [y1, y2], ".")
ax[0, 3].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "arc3, rad = 0.0"))
ax[0, 3].text(0.05, 0.95, "arc3, \nrad = 0.0", ha = "left", va = "top", bbox = bbox)
ax[0, 3].set_xlim(0, 1)
ax[0, 3].set_ylim(0, 1)
ax[0, 3].set_xticklabels([])
ax[0, 3].set_yticklabels([])
# subplot(3,5,9)
ax[1, 3].plot([x1, x2], [y1, y2], ".")
ax[1, 3].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "arc3, rad = 0.5"))
ax[1, 3].text(0.05, 0.95, "arc3, \nrad = 0.5", ha = "left", va = "top", bbox = bbox)
ax[1, 3].set_xlim(0, 1)
ax[1, 3].set_ylim(0, 1)
ax[1, 3].set_xticklabels([])
ax[1, 3].set_yticklabels([])
# subplot(3,5,14)
ax[2, 3].plot([x1, x2], [y1, y2], ".")
ax[2, 3].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "arc3, rad = -0.5"))
ax[2, 3].text(0.05, 0.95, "arc3, \nrad = -0.5", ha = "left", va = "top", bbox = bbox)
ax[2, 3].set_xlim(0, 1)
ax[2, 3].set_ylim(0, 1)
ax[2, 3].set_xticklabels([])
ax[2, 3].set_yticklabels([])
# subplot(3,5,5)
ax[0, 4].plot([x1, x2], [y1, y2], ".")
ax[0, 4].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "bar, armA = 30, armB = 30, fraction = 0.0"))
ax[0, 4].text(0.05, 0.95, "bar, \narmA = 30, \narmB = 30, \nfraction = 0.0", ha = "left", va = "top", bbox = bbox)
ax[0, 4].set_xlim(0, 1)
ax[0, 4].set_ylim(0, 1)
ax[0, 4].set_xticklabels([])
ax[0, 4].set_yticklabels([])
# subplot(3,5,10)
ax[1, 4].plot([x1, x2], [y1, y2], ".")
ax[1, 4].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "bar, fraction = -0.3"))
ax[1, 4].text(0.05, 0.95, "bar, \nfraction = -0.3", ha = "left", va = "top", bbox = bbox)
ax[1, 4].set_xlim(0, 1)
ax[1, 4].set_ylim(0, 1)
ax[1, 4].set_xticklabels([])
ax[1, 4].set_yticklabels([])
# subplot(3,5,15)
ax[2, 4].plot([x1, x2], [y1, y2], ".")
ax[2, 4].annotate("", xy = (x1, y1), xycoords = "data", xytext = (x2, y2), textcoords = "data",
arrowprops = dict(arrowstyle = "->", color = "gray", lw = 3,
shrinkA = 5, shrinkB = 5, patchA = None, patchB = None,
connectionstyle = "bar, armB = 60, angle = 90, fraction = 0.4"))
ax[2, 4].text(0.05, 0.95, "bar, \narmB = 60, \nangle = 90, \nfraction = 0.4",
ha = "left", va = "top", bbox = bbox)
ax[2, 4].set_xlim(0, 1)
ax[2, 4].set_ylim(0, 1)
ax[2, 4].set_xticklabels([])
ax[2, 4].set_yticklabels([])
fig.subplots_adjust(left = 0.05, right = 0.95, bottom = 0.05, top = 0.95, wspace = 0.02, hspace = 0.02)
|