started using different line colors

This commit is contained in:
2023-01-08 12:55:48 +01:00
parent e2c0632771
commit 78a44a449e

View File

@ -14,6 +14,10 @@ class MDISubPlot(MDISubWindow):
from itertools import cycle
from ..theme import LINE_COLORS
class MDISubMultiPlot(MDISubWindow):
def __init__(self, titles, descs, *args, **kwargs):
@ -24,5 +28,11 @@ class MDISubMultiPlot(MDISubWindow):
self.plots = [d.make_plot(plt) for d in descs]
self.setWidget(plt)
cc = cycle(LINE_COLORS)
for p, c in zip(self.plots, cc):
#TODO: this overwrites the line width, etc.
p.setPen(c)
p.setSymbolBrush(c)