Skip to content

Commit

Permalink
add possibility to change x-axis and y-axis title
Browse files Browse the repository at this point in the history
add possibility to change cmap of heatmap
  • Loading branch information
ikaryss committed Nov 20, 2022
1 parent 9ad3aa3 commit a354fd1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pyquac/fmn_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -57,7 +62,9 @@ def serve_layout():
),
dbc.Row(
children=[
figure_layout(data),
figure_layout(
data, x_axis_title, y_axis_title, cmap
),
]
),
]
Expand Down

0 comments on commit a354fd1

Please sign in to comment.