Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BEA data analysis utils
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Niedermayer
BEA data analysis utils
Commits
b85f2795
Commit
b85f2795
authored
2 years ago
by
Philipp Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
Return spectrum
parent
a03e3167
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plotting.py
+4
-1
4 additions, 1 deletion
plotting.py
with
4 additions
and
1 deletion
plotting.py
+
4
−
1
View file @
b85f2795
...
@@ -158,11 +158,14 @@ def plot_tune_spectrum(ax, libera_data, xy, turn_range=None, time_range=None, tu
...
@@ -158,11 +158,14 @@ def plot_tune_spectrum(ax, libera_data, xy, turn_range=None, time_range=None, tu
q
=
SI
.
Measurement
(
fitr
[
0
][
2
],
(
fitr
[
1
][
2
]
**
2
+
fitr
[
0
][
3
]
**
2
+
fitr
[
1
][
3
]
**
2
)
**
0.5
,
''
)
# conservative estimate of error including width of peak
q
=
SI
.
Measurement
(
fitr
[
0
][
2
],
(
fitr
[
1
][
2
]
**
2
+
fitr
[
0
][
3
]
**
2
+
fitr
[
1
][
3
]
**
2
)
**
0.5
,
''
)
# conservative estimate of error including width of peak
ax
.
plot
(
*
fitr
[
-
1
],
'
--
'
,
label
=
f
'
Fit $q_
{
xy
}
=
{
q
:
~
L
}
$
'
,
zorder
=
50
)
ax
.
plot
(
*
fitr
[
-
1
],
'
--
'
,
label
=
f
'
Fit $q_
{
xy
}
=
{
q
:
~
L
}
$
'
,
zorder
=
50
)
return
q
return
q
return
freq
,
mag
,
phase
def
plot_tune_spectrogram
(
ax
,
libera_data
,
xy
,
*
,
nperseg
=
2
**
12
,
noverlap
=
None
,
ninterpol
=
None
,
over_time
=
True
,
colorbar
=
False
,
def
plot_tune_spectrogram
(
ax
,
libera_data
,
xy
,
*
,
nperseg
=
2
**
12
,
noverlap
=
None
,
ninterpol
=
None
,
over_time
=
True
,
colorbar
=
False
,
turn_range
=
None
,
time_range
=
None
,
tune_range
=
None
,
excitation
=
None
,
vmin
=
None
,
vmax
=
None
,
turn_range
=
None
,
time_range
=
None
,
tune_range
=
None
,
excitation
=
None
,
vmin
=
None
,
vmax
=
None
,
cmap
=
'
gist_heat_r
'
,
bunches
=
None
,
show_nperseg
=
True
):
cmap
=
'
gist_heat_r
'
,
bunches
=
None
,
show_nperseg
=
True
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment