set the figure width to the summed widths of the plots

This commit is contained in:
2021-05-27 21:11:19 +02:00
parent 04a1cccb7c
commit f4e0a899a2

View File

@@ -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)