From a354fd17f6273f64ff1c091ae3e1bde72453657e Mon Sep 17 00:00:00 2001 From: Nikolay Date: Sun, 20 Nov 2022 13:14:09 +0300 Subject: [PATCH] add possibility to change x-axis and y-axis title add possibility to change cmap of heatmap --- pyquac/fmn_app.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pyquac/fmn_app.py b/pyquac/fmn_app.py index f294e0c..0bc1523 100644 --- a/pyquac/fmn_app.py +++ b/pyquac/fmn_app.py @@ -30,7 +30,12 @@ ########################## App Layout ########################## -def conf_app(data): +def conf_app( + data, + x_axis_title: str = "Voltages, V", + y_axis_title: str = "Frequencies, GHz", + cmap: str = "rdylbu", +): def serve_layout(): """Define the layout of the application @@ -57,7 +62,9 @@ def serve_layout(): ), dbc.Row( children=[ - figure_layout(data), + figure_layout( + data, x_axis_title, y_axis_title, cmap + ), ] ), ]