Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Connor Hainje
pidanalysis
Commits
4fe24853
Commit
4fe24853
authored
Dec 07, 2021
by
connor.hainje@pnnl.gov
Browse files
Convert theta bin edges to degrees when making labels
parent
ca5458b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/pidplots/pidplots/const.py
View file @
4fe24853
...
...
@@ -76,7 +76,7 @@ THETA_BIN_CENTERS = _compute_bin_centers(THETA_BINS)
N_THETA_BINS
=
len
(
THETA_BIN_CENTERS
)
"""Number of bins in theta."""
THETA_BIN_LABELS
=
[
f
"
{
x
:
.
0
f
}
"
for
x
in
THETA_BINS
]
THETA_BIN_LABELS
=
[
f
"
{
x
:
.
0
f
}
"
for
x
in
np
.
degrees
(
THETA_BINS
)
]
"""Labels for theta bin edges, for use in plotting routines. Can be given in degrees or radians. Set the units to match."""
THETA_BIN_UNIT
=
"deg"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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