source: orange/Orange/OrangeWidgets/VisualizeQt/OWLinProj3D.py @ 11474:df0622184ee6

Revision 11474:df0622184ee6, 1.2 KB checked in by markotoplak, 12 months ago (diff)

Renamed Visualize Qt to VisualizeQt (so it can be loaded in new canvas).

Line 
1'''
2<name>Linear Projection 3D</name>
3<icon>icons/LinearProjection.svg</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.