Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
artiq_experiments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Nunez Barreto
artiq_experiments
Commits
b5bfa241
Commit
b5bfa241
authored
Mar 25, 2024
by
Nicolas Nunez Barreto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
todo
parent
b848b77e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
RDS_piezobeamsizes_2024_invariance.py
...alDopplerShift_news/RDS_piezobeamsizes_2024_invariance.py
+8
-7
No files found.
analisis/plots/20240312_RotationalDopplerShift_news/RDS_piezobeamsizes_2024_invariance.py
View file @
b5bfa241
...
...
@@ -121,7 +121,7 @@ palette = sns.color_palette("tab10")
pmlocmedvec1
=
list
(
np
.
arange
(
0
,
len
(
PIEZOS1_FILES
)
-
2
,
1
))
#pmlocmedvec1 = [1]
#pmlocmedvec1 = [1
8
]
plt
.
figure
()
...
...
@@ -172,7 +172,7 @@ for med in pmlocmedvec1:
plt
.
plot
([
2
*
f
*
1e-6
for
f
in
Piezo1Frequencies
[
med
][
1
:]],
[
c
for
c
in
Piezo1Counts
[
med
][
1
:]],
'-o'
,
markersize
=
2
,
alpha
=
0.7
)
plt
.
plot
([
f
*
1
for
f
in
Freqs
],
Lorentzian
(
Freqs
,
*
popt
))
plt
.
axhline
(
bkg
,
linestyle
=
'dashed'
,
color
=
'k'
)
#
plt.axhline(bkg,linestyle='dashed',color='k')
jj
=
jj
+
1
plt
.
grid
()
...
...
@@ -471,7 +471,8 @@ from scipy.optimize import curve_fit
def
modelo3
(
r
,
a
,
b
,
d
):
return
(
a
*
jv
(
0
,
b
*
(
1
/
(
r
-
d
)))
*
jv
(
0
,
2
*
b
*
(
1
/
(
r
-
d
))))
**
2
#d=0
return
a
*
(
jv
(
0
,
b
*
(
1
/
(
r
-
d
))))
**
2
rfit
=
np
.
arange
(
x1
,
len
(
Intensityver2
)
*
20
+
x2
,
20
)
yfit
=
[
pmdepthsdrver1
[
0
],
pmdepthsdrver1
[
1
],
pmdepthsdrver1
[
2
]]
+
[
p
for
p
in
pmdepthsdrver2
]
...
...
@@ -482,9 +483,9 @@ popt,pcov = curve_fit(modelo3,rfit,yfit)
rfit
=
np
.
arange
(
x2
,
len
(
Intensityver2
)
*
20
+
x2
,
20
)
yfit
=
[
p
for
p
in
pmdepthsdrver2
]
rlong
=
np
.
arange
(
1e-10
,
1000
,
1
)
rlong
=
np
.
arange
(
-
200.1
,
1000
,
1
)
popt
,
pcov
=
curve_fit
(
modelo3
,
rfit
,
yfit
,
p0
=
(
10
,
10
,
10
))
popt
,
pcov
=
curve_fit
(
modelo3
,
rfit
,
yfit
,
p0
=
(
10
,
10
0
,
10
))
print
(
popt
)
plt
.
figure
()
...
...
@@ -495,9 +496,9 @@ plt.plot([x*20 for x in xchicofinal],[i/np.max(IntensityChico) for i in Intensit
plt
.
errorbar
(
np
.
arange
(
x2
,
len
(
Intensityver2
)
*
20
+
x2
,
20
),
[
p
for
p
in
pmdepthsdrver2
],
yerr
=
errorpmdepthsdrver2
,
fmt
=
'o'
,
color
=
'blue'
,
capsize
=
3
,
markersize
=
8
,
zorder
=
1
)
plt
.
plot
([
x
*
20
for
x
in
xgrandefinal
],[
i
/
np
.
max
(
IntensityGrande
)
for
i
in
IntensityGrande
],
'o'
,
color
=
'blue'
,
alpha
=
0.3
)
plt
.
plot
(
rlong
,
modelo3
(
rlong
,
*
popt
),
zorder
=
2
,
color
=
'green'
,
linewidth
=
3
,
label
=
r'$I(r)=a\,(J_0(\frac{b}{r}))^2$'
)
plt
.
plot
(
rlong
,
modelo3
(
rlong
,
popt
[
0
],
popt
[
1
]
*
1
,
popt
[
2
]
),
zorder
=
2
,
color
=
'green'
,
linewidth
=
3
,
label
=
r'$I(r)=a\,(J_0(\frac{b}{r}))^2$'
)
plt
.
xlim
(
-
2
0
,
600
+
x2
+
10
)
plt
.
xlim
(
-
10
0
,
600
+
x2
+
10
)
plt
.
legend
()
plt
.
grid
()
...
...
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