Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions waveform_editor/gui/shape_editor/nice_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def __init__(self, **params):
title="Equilibrium poloidal flux",
xlabel="r [m]",
ylabel="z [m]",
data_aspect=1,
responsive=True,
)
self.nice_settings = settings.nice
self.CONTOUR_OPTS = hv.opts.Contours(
Expand All @@ -80,14 +82,13 @@ def __init__(self, **params):
)
self.flux_map_pane = pn.pane.HoloViews(
flux_map_overlay,
width=self.WIDTH,
height=self.HEIGHT,
sizing_mode="stretch_both",
loading=self.communicator.param.processing,
)

profiles_plot = hv.DynamicMap(self._plot_profiles)
self.profiles_pane = pn.pane.HoloViews(
profiles_plot, width=self.PROFILE_WIDTH, height=self.PROFILE_HEIGHT
profiles_plot, sizing_mode="stretch_width", min_height=self.PROFILE_HEIGHT
)
self.panel_layout = pn.Param(
self.param,
Expand Down
5 changes: 4 additions & 1 deletion waveform_editor/gui/shape_editor/shape_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,16 @@ def __init__(self, main_gui):
menu = pn.Column(buttons, self.terminal, sizing_mode="stretch_width")
self.panel = pn.Row(
pn.Column(
pn.Row(settings_modal, align="end"), self.nice_plotter.flux_map_pane
pn.Row(settings_modal, align="end"),
self.nice_plotter.flux_map_pane,
sizing_mode="stretch_both",
),
pn.Column(
menu,
options,
sizing_mode="stretch_both",
),
sizing_mode="stretch_both",
)

def _create_card(self, panel_object, title, is_valid=None, visible=True):
Expand Down
4 changes: 3 additions & 1 deletion waveform_editor/gui/waveform_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def __init__(
sizing_mode="stretch_both",
visible=is_waveform_page,
)
plasma_page = pn.Column(shape_editor, visible=is_plasma_page)
plasma_page = pn.Column(
shape_editor, sizing_mode="stretch_both", visible=is_plasma_page
)
self._layout = pn.Column(waveform_page, plasma_page, sizing_mode="stretch_both")

def __panel__(self):
Expand Down
Loading