started using different line colors
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user