From f4ad435cd1c4809ea0fc31a1d55554ad1ee25357 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Mon, 16 Sep 2019 17:10:53 +1000 Subject: [PATCH] Add labels for energy spectrum --- daqviewer/daqviewer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/daqviewer/daqviewer.py b/daqviewer/daqviewer.py index 89cdfb9..f0d9842 100644 --- a/daqviewer/daqviewer.py +++ b/daqviewer/daqviewer.py @@ -155,8 +155,13 @@ def read_json_data(json_data): figure={ 'data': spec, 'layout': { + 'title': 'Energy spectrum', 'xaxis': { - 'range': [0, f_max] + 'range': [0, f_max], + 'title': 'Frequency (Hz)', + }, + 'yaxis': { + 'title': 'Energy (mm^2.s)', } } })