Skip to content

Commit

Permalink
Fix titles for VBox
Browse files Browse the repository at this point in the history
  • Loading branch information
thuiop committed Jul 19, 2021
1 parent bf6b471 commit 9a177c5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
12 changes: 8 additions & 4 deletions btk/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,18 +525,22 @@ def plot_metrics_summary( # noqa: C901
for key in measure_keys
}
measure_functions = [measure_functions_dict[key] for key in measure_keys]
measure_functions_widget = widgets.VBox(measure_functions, description="Measure functions")
measure_functions_widget = widgets.VBox(measure_functions)
measure_title_widget = widgets.HTML("<em>Measure functions</em>")
measure_vbox = widgets.VBox([measure_title_widget, measure_functions_widget])
# Checkboxes for selecting the survey (if multiresolution)
if multiresolution:
surveys_dict = {
key: widgets.Checkbox(description=key, value=False, layout=layout)
for key in survey_keys
}
surveys = [surveys_dict[key] for key in survey_keys]
surveys_widget = widgets.VBox(surveys, description="Surveys")
measure_surveys_widget = widgets.VBox([measure_functions_widget, surveys_widget])
surveys_widget = widgets.VBox(surveys)
surveys_title_widget = widgets.HTML("<em>Surveys</em>")
surveys_vbox = widgets.VBox([surveys_title_widget, surveys_widget])
measure_surveys_widget = widgets.VBox([measure_vbox, surveys_vbox])
else:
measure_surveys_widget = measure_functions_widget
measure_surveys_widget = measure_vbox
# Sliders to filter based on parameters
blendedness_widget = widgets.FloatRangeSlider(
description="Blendedness",
Expand Down
42 changes: 15 additions & 27 deletions notebooks/scarlet-measure.ipynb

Large diffs are not rendered by default.

0 comments on commit 9a177c5

Please sign in to comment.