Commit 4007377e authored by Ivo Peterek's avatar Ivo Peterek

FIX: shuffle colours in legend only if there is more than 30 items. #8

parent e6c8c753
......@@ -583,7 +583,8 @@ class Window(QtWidgets.QDialog):
self.funcmax = 0
colors = pl.cm.jet(np.linspace(0, 1, self.n))
np.random.shuffle(colors)
if len(colors) > 30:
np.random.shuffle(colors)
for m in range(0,self.n):
X = [x[0] for x in self.K[m]]
Y = [x[1] for x in self.K[m]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment