diff --git a/plot0d.py b/plot0d.py index 2f883e3..4c3510a 100644 --- a/plot0d.py +++ b/plot0d.py @@ -12,12 +12,15 @@ class Plot0D(Object): def __init__(self, name=None): self.timeseries = timeseries = TimeSeries() self.histo = histo = Histo() + #TODO: if not set, width and height are None width = timeseries.fig.width + histo.fig.width height = max(timeseries.fig.height, histo.fig.height) + fig = row(timeseries.fig, histo.fig, width=width, height=height, name=name) super().__init__(fig) + def set(self, times, values): self.timeseries.set(times, values) self.histo.set(values)