new lines

This commit is contained in:
2021-06-02 18:39:58 +02:00
parent 445d82caa6
commit cb2a17b100
+3
View File
@@ -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)