new lines
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user