Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Calibration
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Calibration
Commits
2b34b56c
Commit
2b34b56c
authored
Jul 24, 2018
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fine tune plot output
parent
b4d26024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
tic_gui.py
sw/ab_cal_scripts/tic_gui.py
+6
-5
No files found.
sw/ab_cal_scripts/tic_gui.py
View file @
2b34b56c
...
...
@@ -193,7 +193,7 @@ if __name__ == "__main__":
t_hist
=
gui_data
[
"t4"
]
-
gui_data
[
"t1"
]
num
=
len
(
gui_data
[
"t1"
])
print
(
"Delay between internal timestamp t1 and t4 (i.e. t4-t1):"
)
hist_tic
=
plt
.
figure
(
"Histogram difference WR (t4-t1)"
)
hist_tic
=
plt
.
figure
(
"Histogram difference WR
GUI
(t4-t1)"
)
plot_hist
(
t_hist
,
hist_tic
)
else
:
tic_file
=
sys
.
argv
[
1
]
...
...
@@ -208,17 +208,18 @@ if __name__ == "__main__":
print
(
"Measurements to take into account:"
,
num
)
print
(
"Delay between abscal_txts and internal timestamp t1 and t4p:"
)
fig
=
plt
.
figure
(
"Time Interval Counter
measurements
and WR GUI t1, t4p versus measurment number"
)
fig
=
plt
.
figure
(
"Time Interval Counter and WR GUI t1, t4p versus measurment number"
)
ax
=
fig
.
add_subplot
(
111
)
ax
.
set_xlabel
(
'measurement number'
)
ax
.
set_ylabel
(
'TIC
value, WR t1
'
)
ax
.
set_ylabel
(
'TIC
, WR GUI t1, WR GUI t4p
'
)
x
=
tic_data
[
0
][:
num
]
lns1
=
ax
.
plot
(
x
,
gui_data
[
"t1"
][:
num
],
color
=
'red'
,
label
=
'WR GUI t1'
)
lns2
=
ax
.
plot
(
x
,
gui_data
[
"t4"
][:
num
],
color
=
'
purple'
,
label
=
'WR GUI t4p'
)
lns1
=
ax
.
plot
(
x
,
gui_data
[
"t1"
][:
num
],
color
=
'red'
,
dashes
=
[
2
,
2
,
10
,
2
],
label
=
'WR GUI t1'
)
lns2
=
ax
.
plot
(
x
,
gui_data
[
"t4"
][:
num
],
color
=
'
red'
,
dashes
=
[
6
,
2
]
,
label
=
'WR GUI t4p'
)
lns3
=
ax
.
plot
(
x
,
tic_data
[
1
][:
num
],
color
=
'blue'
,
label
=
'TIC'
)
lns
=
lns1
+
lns2
+
lns3
labels
=
[
l
.
get_label
()
for
l
in
lns
]
ax
.
legend
(
lns
,
labels
,
loc
=
'lower right'
,
fontsize
=
'medium'
)
plt
.
subplots_adjust
(
left
=
0.17
)
plt
.
draw
()
t_hist_t1
=
tic_data
[
1
][:
num
]
-
gui_data
[
"t1"
][:
num
]
hist_tic_t1
=
plt
.
figure
(
"Historam TIC(pps->abscal_txts) - t1"
)
...
...
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