Skip to content
Snippets Groups Projects
Commit 7e1bc1e4 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

color failed analysis in history plots

parent 0b54b285
No related branches found
Tags 0.16.6
No related merge requests found
......@@ -84,15 +84,21 @@ def plot_history(path, lookback='7 days ago', draw_segs=False):
fig = plt.figure(figsize=(16, 4)) #, dpi=80)
ax = fig.add_subplot(111)
# plot failed lock losses
escatter(
filter(lambda e: not e.analysis_succeeded, events),
s=100, color='red',
)
# plot non-observe lock losses
escatter(
filter(lambda e: not e.has_tag('OBSERVE'), events),
s=100,
filter(lambda e: e.analysis_succeeded and not e.has_tag('OBSERVE'), events),
s=100, color='blue',
)
# plot observe lock losses (stars)
escatter(
filter(lambda e: e.has_tag('OBSERVE'), events),
filter(lambda e: e.analysis_succeeded and e.has_tag('OBSERVE'), events),
s=200, marker='*', color='green',
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment