Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanwerkhoven authored Apr 22, 2024
2 parents cac86f6 + 79821b3 commit 53a9478
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ktdashboard/ktdashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def __init__(self, cache_file, demo=False, default_key=None):
self.data_df = data_df
self.source = ColumnDataSource(data=self.data_df)

plot_options=dict(height=600, width=900)
self.plot_width = 900
self.plot_height = 600
plot_options=dict(width=self.plot_width, min_width=self.plot_width, height=self.plot_height, min_height=self.plot_height)
plot_options['tools'] = [HoverTool(tooltips=[(k, "@{"+k+"}" + ("{0.00}" if k in float_keys else "")) for k in scalar_value_keys]), "box_select,box_zoom,save,reset"]

self.plot_options = plot_options
Expand Down Expand Up @@ -214,7 +216,9 @@ def make_scatter(self, xvariable, yvariable, color_by, xscale, yscale):
f.xaxis.axis_label = xvariable
f.yaxis.axis_label = yvariable

pane = pn.Column(pn.pane.Markdown(f"## Auto-tuning {self.kernel_name} on {self.device_name}"), pn.pane.Bokeh(f))
bokeh_pane = pn.pane.Bokeh(object=f, min_width=self.plot_width, min_height=self.plot_height, max_width=self.plot_width, max_height=self.plot_height)

pane = pn.Column(pn.pane.Markdown(f"## Auto-tuning {self.kernel_name} on {self.device_name}"), bokeh_pane)

return pane

Expand Down

0 comments on commit 53a9478

Please sign in to comment.