set the figure width to the summed widths of the plots
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user