made style function argument

This commit is contained in:
2023-01-08 13:13:55 +01:00
parent 78a44a449e
commit a1374004dc

View File

@ -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)