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
Jan Zelenka
prasopes
Commits
fbfb9e08
Commit
fbfb9e08
authored
Nov 13, 2018
by
Yan
Browse files
Added zero-lines to TSQ-zce view
parent
f4d7ae5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
prasopes/zcetools.py
View file @
fbfb9e08
...
...
@@ -24,6 +24,8 @@ def pop_dial(zcespec, gradspect, data_set, coff_d, grad_d,
coff_d
[
'y'
]
=
np
.
mean
(
data_set
[
'matrix'
],
axis
=
0
)
grad_d
[
'x'
]
=
coff_d
[
'x'
]
grad_d
[
'y'
]
=
-
np
.
gradient
(
coff_d
[
'y'
])
gradspect
.
axhline
(
0
,
color
=
"#FF000088"
,
linestyle
=
":"
)
zcespec
.
axhline
(
0
,
color
=
"#0000FF88"
,
linestyle
=
":"
)
gt
.
pop_plot
(
zcespec
,
coff_d
)
gt
.
pop_plot
(
gradspect
,
grad_d
)
grad_d
[
'line'
][
0
].
set_color
(
"red"
)
...
...
Write
Preview
Supports
Markdown
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