From f4e0a899a2c5dbbcd757e2594b7f614cff35e6b3 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Thu, 27 May 2021 21:11:19 +0200 Subject: [PATCH] set the figure width to the summed widths of the plots --- plot0d.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plot0d.py b/plot0d.py index 0362fb0..97bd215 100644 --- a/plot0d.py +++ b/plot0d.py @@ -10,7 +10,8 @@ class Plot0D: def __init__(self): self.timeseries = timeseries = TimeSeries() self.histo = histo = Histo() - self.fig = row(timeseries.fig, histo.fig) + width = timeseries.fig.width + histo.fig.width #TODO: if not set, width is None + self.fig = row(timeseries.fig, histo.fig, width=width) def set(self, times, values): self.timeseries.set(times, values)