Skip to content
Snippets Groups Projects
Commit aa4b1faf authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Improve plot layout

parent f00001b7
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ from __future__ import division, print_function
from datetime import datetime
from collections import defaultdict, deque, OrderedDict
from itertools import chain
import sys
from io import BytesIO
from os.path import join
......@@ -161,14 +162,14 @@ class TriggerRate(kp.Module):
run_changes_to_plot = self._get_run_changes_to_plot()
self.print("Recorded run changes: {}".format(run_changes_to_plot))
min_trigger_rate = min(
[r[1] for r in self.trigger_rates['Overall']])
all_rates = [r for d, r in chain(*self.trigger_rates.values())]
min_trigger_rate = min(all_rates)
max_trigger_rate = max(all_rates)
for run_start, run in run_changes_to_plot:
plt.text(
run_start,
min_trigger_rate,
run_start, (min_trigger_rate + max_trigger_rate) / 2,
"\nRUN %s " % run,
rotation=90,
rotation=60,
verticalalignment='top',
fontsize=8,
color='gray')
......
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