Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AUSA
Erik
nuchart
Commits
fd02b5f8
Commit
fd02b5f8
authored
Jul 07, 2021
by
Erik Asbjørn Mikkelsen Jensen
Browse files
small update of example figure
parent
129e49cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/graph-example-beta-delayed.py
View file @
fd02b5f8
...
...
@@ -109,10 +109,14 @@ plt.hlines(np.array(range(int(ymin), int(ymax) + 1)) + 0.5, xlower[0:-1] + 0.5,
# HIGHLIGHT SPECIFIC NUCLIDES
text0
=
plt
.
annotate
(
"$\mathtt{^{21}Mg}$"
,
(
9
,
12
),
(
3.5
,
17
),
arrowprops
=
dict
(
arrowstyle
=
"wedge"
,
lw
=
1
,
facecolor
=
'k'
),
ha
=
"right"
,
path_effects
=
[
pe
.
withStroke
(
linewidth
=
0.6
,
foreground
=
'lightgrey'
)])
text0
.
arrow_patch
.
set_path_effects
([
pe
.
Stroke
(
linewidth
=
1.6
,
foreground
=
'lightgrey'
),
pe
.
Normal
()])
text1
=
plt
.
annotate
(
"$\mathtt{^{22}Al}$"
,
(
9
,
13
),
(
7
.5
,
2
1
),
arrowprops
=
dict
(
arrowstyle
=
"wedge"
,
lw
=
1
,
edgecolor
=
'whitesmoke'
,
facecolor
=
'whitesmoke'
),
ha
=
"right
"
,
color
=
'whitesmoke'
,
path_effects
=
[
pe
.
withStroke
(
linewidth
=
0.6
,
foreground
=
'k'
)])
text1
=
plt
.
annotate
(
"$\mathtt{^{22}Al}
, \mathtt{^{23}Si},$"
+
"
\n
"
+
"$\mathtt{^{26}P}, \mathtt{^{27}S}
$"
,
(
9
,
13
),
(
8
.5
,
2
2
),
arrowprops
=
dict
(
arrowstyle
=
"wedge"
,
lw
=
1
,
edgecolor
=
'whitesmoke'
,
facecolor
=
'whitesmoke'
,
relpos
=
(
0.1
,
0.2
)),
ha
=
"center"
,
va
=
"center
"
,
color
=
'whitesmoke'
,
path_effects
=
[
pe
.
withStroke
(
linewidth
=
0.6
,
foreground
=
'k'
)])
text1
.
arrow_patch
.
set_path_effects
([
pe
.
Stroke
(
linewidth
=
1.6
,
foreground
=
'k'
),
pe
.
Normal
()])
text2
=
plt
.
annotate
(
"$\mathtt{^{2
6}P
}$"
,
(
11
,
1
5
),
(
11
,
21
)
,
arrowprops
=
dict
(
arrowstyle
=
"wedge"
,
lw
=
1
,
edgecolor
=
'whitesmoke'
,
facecolor
=
'whitesmoke'
),
ha
=
"right
"
,
color
=
'whitesmoke'
,
path_effects
=
[
pe
.
withStroke
(
linewidth
=
0.6
,
foreground
=
'k'
)])
text2
=
plt
.
annotate
(
"$\mathtt{^{2
2}Al}, \mathtt{^{23}Si},$"
+
"
\n
"
+
"$\mathtt{^{26}P}, \mathtt{^{27}S
}$"
,
(
9
,
1
4
),
(
8.5
,
22
),
alpha
=
0.0
,
arrowprops
=
dict
(
arrowstyle
=
"wedge"
,
lw
=
1
,
edgecolor
=
'whitesmoke'
,
facecolor
=
'whitesmoke'
,
relpos
=
(
0.3
,
0.2
)),
ha
=
"center"
,
va
=
"center
"
,
color
=
'whitesmoke'
,
path_effects
=
[
pe
.
withStroke
(
linewidth
=
0.6
,
foreground
=
'k'
)])
text2
.
arrow_patch
.
set_path_effects
([
pe
.
Stroke
(
linewidth
=
1.6
,
foreground
=
'k'
),
pe
.
Normal
()])
text3
=
plt
.
annotate
(
"$\mathtt{^{22}Al}, \mathtt{^{23}Si},$"
+
"
\n
"
+
"$\mathtt{^{26}P}, \mathtt{^{27}S}$"
,
(
11
,
15
),
(
8.5
,
22
),
alpha
=
0.0
,
arrowprops
=
dict
(
arrowstyle
=
"wedge"
,
lw
=
1
,
edgecolor
=
'whitesmoke'
,
facecolor
=
'whitesmoke'
,
relpos
=
(
0.5
,
0.2
)),
ha
=
"center"
,
va
=
"center"
,
color
=
'whitesmoke'
,
path_effects
=
[
pe
.
withStroke
(
linewidth
=
0.6
,
foreground
=
'k'
)])
text3
.
arrow_patch
.
set_path_effects
([
pe
.
Stroke
(
linewidth
=
1.6
,
foreground
=
'k'
),
pe
.
Normal
()])
text4
=
plt
.
annotate
(
"$\mathtt{^{22}Al}, \mathtt{^{23}Si},$"
+
"
\n
"
+
"$\mathtt{^{26}P}, \mathtt{^{27}S}$"
,
(
11
,
16
),
(
8.5
,
22
),
alpha
=
0.0
,
arrowprops
=
dict
(
arrowstyle
=
"wedge"
,
lw
=
1
,
edgecolor
=
'whitesmoke'
,
facecolor
=
'whitesmoke'
,
relpos
=
(
0.7
,
0.2
)),
ha
=
"center"
,
va
=
"center"
,
color
=
'whitesmoke'
,
path_effects
=
[
pe
.
withStroke
(
linewidth
=
0.6
,
foreground
=
'k'
)])
text4
.
arrow_patch
.
set_path_effects
([
pe
.
Stroke
(
linewidth
=
1.6
,
foreground
=
'k'
),
pe
.
Normal
()])
# SAVE THE FIGURE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment