From b76038fcc0270fb25a06e8a8fb6c3e449f43cb4d Mon Sep 17 00:00:00 2001 From: Glenn Wikle Date: Thu, 9 Sep 2021 15:30:15 -0600 Subject: [PATCH 1/2] responsive width for dispatch plot #822 --- viz/dispatch_plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viz/dispatch_plot.py b/viz/dispatch_plot.py index 756261e5d..870e03a5c 100644 --- a/viz/dispatch_plot.py +++ b/viz/dispatch_plot.py @@ -409,9 +409,9 @@ def create_plot(df, title, power_unit, tech_colors={}, tech_plotting_order={}, # Set up the figure plot = figure( plot_width=800, plot_height=500, - tools=["pan", "reset", "zoom_in", "zoom_out", "save", "help"], +# tools=["pan", "reset", "zoom_in", "zoom_out", "save", "help"], title=title, - # sizing_mode="scale_both" + sizing_mode='stretch_width', ) # Add stacked area chart to plot From d954c8d6cbfe145b2c98225b3de26ef71c84bf4c Mon Sep 17 00:00:00 2001 From: nmgeek Date: Wed, 24 Nov 2021 20:41:23 -0700 Subject: [PATCH 2/2] acquiesce to linter --- viz/dispatch_plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viz/dispatch_plot.py b/viz/dispatch_plot.py index c685507ac..c72e70ef8 100644 --- a/viz/dispatch_plot.py +++ b/viz/dispatch_plot.py @@ -420,7 +420,7 @@ def create_plot( plot_height=500, tools=["pan", "reset", "zoom_in", "zoom_out", "save", "help"], title=title, - sizing_mode='stretch_width', + sizing_mode="stretch_width", ) # Add stacked area chart to plot