Annotation arrow style reference
import
itertools
import
re
import
matplotlib.pyplot
as
plt
from
matplotlib.patches
import
ArrowStyle
=
ArrowStyle
.
get_styles
()
=
2
=
(
len
(
)
+
1
)
//
=
dict
(
wspace
=
0
,
hspace
=
0.05
,
left
=
0
,
right
=
1
,
bottom
=
0
,
top
=
1
)
,
=
(
1
+
,
,
figsize
=
(
4
*
,
1
+
),
=
)
for
in
:
(
-
0.1
,
4
)
()
for
in
[
0
,
:]:
(
0
,
0.5
,
"arrowstyle"
,
size
=
"large"
,
color
=
"tab:blue"
)
(
1.4
,
.5
,
"default parameters"
,
size
=
"large"
)
for
,
(
,
)
in
zip
(
[
1
:,
:]
.
T
.
flat
,
.
items
()):
,
=
(
1.25
,
0
,
"o"
,
color
=
"darkgrey"
)
(
,
(
1.25
,
0
),
(
0
,
0
),
size
=
"large"
,
color
=
"tab:blue"
,
va
=
"center"
,
family
=
"monospace"
,
arrowprops
=
dict
(
arrowstyle
=
,
connectionstyle
=
"arc3,rad=0"
,
color
=
"black"
,
shrinkA
=
5
,
shrinkB
=
5
,
patchB
=
,
),
bbox
=
dict
(
boxstyle
=
"square"
,
fc
=
"w"
,
ec
=
"darkgrey"
))
=
str
(
(
))[
1
:
-
1
]
=
2
if
.
count
(
','
)
>
3
else
1
(
1.4
,
0
,
(
', '
,
lambda
m
,
c
=
(
1
):
m
.
group
()
if
next
(
c
)
%
else
'
\n
'
,
),
verticalalignment
=
"center"
,
color
=
"0.3"
)
()
Total running time of the script: (0 minutes 2.243 seconds)