made style function argument
This commit is contained in:
@ -23,8 +23,10 @@ class PlotDescription:
|
||||
self.ys.append(y)
|
||||
|
||||
|
||||
def make_plot(self, plotwidget):
|
||||
res = plotwidget.plot(self.xs, self.ys, **self.style)
|
||||
def make_plot(self, plotwidget, style=None):
|
||||
style = style or self.style
|
||||
|
||||
res = plotwidget.plot(self.xs, self.ys, **style)
|
||||
|
||||
if self.title:
|
||||
plotwidget.setTitle(self.title)
|
||||
|
Reference in New Issue
Block a user