Commits

Aleš Erjavec  committed 94ef1ad

Fixed a error in MDS widget.

  • Participants
  • Parent commits 018a595

Comments (0)

Files changed (1)

File Orange/OrangeWidgets/Unsupervised/OWMDS.py

                     if check(data[i], attr):
                         self.colors[i][attrI] = c.getColor((data[i][attr] - minVal) / span)
                         self.names[i][attrI] = " " + str(data[i][attr])
-                        self.sizes[i][contI] = int(self.data[i][attr] / maxVal * 9) + 1
+                        self.sizes[i][contI] = int(9 * (self.data[i][attr] - minVal) / span) + 1
                     else:
                         self.colors[i][attrI] = Qt.black
                         self.names[i][attrI] = ""