source: orange/orange/OrangeWidgets/Visualize Qt/OWLinProj3D.py @ 9546:2b6cc6f397fe

Revision 9546:2b6cc6f397fe, 1.2 KB checked in by ales_erjavec <ales.erjavec@…>, 2 years ago (diff)

Renamed widget channel names in line with the new naming rules/convention.
Added backwards compatibility in orngDoc loadDocument to enable loading of schemas saved before the change.

Line 
1'''
2<name>Linear Projection 3D</name>
3<icon>icons/LinearProjection.png</icon>
4<priority>2002</priority>
5'''
6
7from plot.owplot3d import *
8
9from OWLinProjQt import *
10from OWLinProj3DPlot import OWLinProj3DPlot
11
12class OWLinProj3D(OWLinProjQt):
13    def __init__(self, parent=None, signalManager=None):
14        OWLinProjQt.__init__(self, parent, signalManager, "Linear Projection 3D", graphClass=OWLinProj3DPlot)
15
16        self.inputs = [("Data", ExampleTable, self.setData, Default),
17                       ("Data Subset", ExampleTable, self.setSubsetData),
18                       ("Features", AttributeList, self.setShownAttributes),
19                       ("Evaluation Results", orngTest.ExperimentResults, self.setTestResults),
20                       ("VizRank Learner", orange.Learner, self.setVizRankLearner)]
21        self.outputs = [("Selected Data", ExampleTable),
22                        ("Other Data", ExampleTable),
23                        ("Features", AttributeList)]
24        self.resize(1000, 600)
25
26if __name__ == '__main__':
27    app = QApplication(sys.argv)
28    viz = OWLinProj3D()
29    viz.show()
30    data = orange.ExampleTable('../../doc/datasets/iris')
31    viz.setData(data)
32    viz.handleNewSignals()
33    app.exec_()
Note: See TracBrowser for help on using the repository browser.