Commits

Aleš Erjavec  committed 4167d35

Update the plot after restoring context settings.

(fixes #1325)

  • Participants
  • Parent commits 45b798d

Comments (0)

Files changed (2)

File Orange/OrangeWidgets/Evaluate/OWLiftCurve.py

                 self.defaultPerfLinePValues.append(v)
                 self.pvalueList.append( v)
 
-            self.targetClass = 0 ## select first target
+            self.targetClass = 0  # select first class as default target
+            self.openContext("", self.dres)
+
+            # Update target class and selected classifiers from
+            # context settings
             self.target()
+            self.classifiersSelectionChange()
+
         else:
             self.classifierColor = None
-        self.openContext("", self.dres)
         self.performanceTabCosts.setEnabled(1)
         self.setDefaultPValues()
 

File Orange/OrangeWidgets/Evaluate/OWROC.py

                 self.defaultPerfLinePValues.append(v)
                 self.pvalueList.append( v)
 
-            self.targetClass = 0 ## select first target
+            self.targetClass = 0  # select first class as default target
+            self.openContext("", self.dres)
+
+            # Update target class and selected classifiers from
+            # context settings
             self.target()
+            self.classifiersSelectionChange()
         else:
             self.classifierColor = None
-        self.openContext("", self.dres)
         self.performanceTabCosts.setEnabled(self.AveragingMethod == 'merge')
         self.setDefaultPValues()