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
0fdb2027
Commit
0fdb2027
authored
Jan 15, 2024
by
Nicolas Nunez Barreto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://code.df.uba.ar/nnunez/artiq_experiments
parents
6ad096de
f0723a27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
lolo_graficos_pub.py
...is/plots/20231123_CPTconmicromocion3/lolo_graficos_pub.py
+10
-4
No files found.
analisis/plots/20231123_CPTconmicromocion3/lolo_graficos_pub.py
View file @
0fdb2027
...
...
@@ -535,8 +535,8 @@ fig.align_ylabels([ax_central,ax_res])
fig
.
tight_layout
()
fig
.
savefig
(
'grafico_central_opcion_A.png'
,
dpi
=
300
)
fig
.
savefig
(
'grafico_central_opcion_A.pdf'
)
#
fig.savefig('grafico_central_opcion_A.png', dpi=300)
#
fig.savefig('grafico_central_opcion_A.pdf')
...
...
@@ -559,6 +559,12 @@ plt.rcParams['text.usetex']=True
# fig.set_constrained_layout_pads(w_pad=2/72, h_pad=2/72, hspace=0, wspace=0)
voltages_dcA
=
Voltages
[
0
][
SelectedCurveVec
]
*
4
## Layout ###########################
from
matplotlib
import
gridspec
figsize
=
(
8.6
/
2.54
*
2
,
4
)
...
...
@@ -654,7 +660,7 @@ axx[1,2].set_ylabel('Counts')
I
=
slice
(
None
,
9
)
par_inicial
=
(
12
,
1
,
-
0.13
)
param
,
pcov
=
curve_fit
(
hiperbola2
,
voltages_dcA
[
I
],
Betas_vec
[
I
],
p0
=
par_inicial
)
x_hip
=
np
.
linspace
(
-
0.23
,
0.005
,
200
)
x_hip
=
np
.
linspace
(
-
0.23
*
4
,
0.005
,
200
)
EST
=
estadistica
(
voltages_dcA
[
I
],
Betas_vec
[
I
],
hiperbola2
,
pcov
,
param
,
nombres
=
None
,
alpha
=
0.05
)
print_estadistica
(
EST
)
...
...
@@ -666,7 +672,7 @@ ax.errorbar(voltages_dcA[I],Betas_vec[I],yerr=ErrorBetas_vec[I],fmt='o',
ax
.
plot
(
x_hip
,
hiperbola2
(
x_hip
,
*
param
),
color
=
'C0'
,
label
=
r'hyperbola model'
)
ax
.
set_ylabel
(
r'Modulation factor $\beta$'
,
labelpad
=-
5
)
ax
.
set_ylim
(
-
0.05
,
3
)
ax
.
set_xlim
(
-
0.22
,
0
)
ax
.
set_xlim
(
-
0.22
*
4
,
0
)
ax
.
set_title
(
f
'(h)'
,
x
=
0.95
,
y
=
0.006
,
color
=
'gray'
)
ax
=
ax_res
...
...
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