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

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

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

RevLine 
[8173]1"""
2<name>Radviz (Qt)</name>
3<description>Create a radviz projection.</description>
4<contact>Gregor Leban (gregor.leban@fri.uni-lj.si)</contact>
[11474]5<icon>icons/Radviz.svg</icon>
[8173]6<priority>150</priority>
7"""
8# Radviz.py
9#
10# Show a radviz projection of the data
11#
12
13from OWLinProjQt import *
14#
15
16class OWRadvizQt(OWLinProjQt):
17    settingsList = ["graph.pointWidth", "graph.jitterSize", "graph.showFilledSymbols", "graph.scaleFactor",
18                    "graph.showLegend", "graph.optimizedDrawing", "graph.useDifferentSymbols", "autoSendSelection", "graph.useDifferentColors",
19                    "graph.tooltipKind", "graph.tooltipValue", "toolbarSelection", "graph.showClusters", "clusterClassifierName", "graph.useAntialiasing",
20                    "valueScalingType", "graph.showProbabilities", "showAllAttributes",
21                    "learnerIndex", "colorSettings", "selectedSchemaIndex", "addProjectedPositions", "VizRankLearnerName"]
22
23    def __init__(self, parent=None, signalManager = None):
24        OWLinProjQt.__init__(self, parent, signalManager, "Radviz (Qt)")
25
[9546]26        self.inputs = [("Data", ExampleTable, self.setData, Default), ("Data Subset", ExampleTable, self.setSubsetData), ("Features", AttributeList, self.setShownAttributes), ("Evaluation Results", orngTest.ExperimentResults, self.setTestResults), ("VizRank Learner", orange.Learner, self.setVizRankLearner)]
27        self.outputs = [("Selected Data", ExampleTable), ("Other Data", ExampleTable), ("Features", AttributeList)]
[8173]28
29
30
31#test widget appearance
32if __name__=="__main__":
33    a=QApplication(sys.argv)
34    ow=OWRadvizQt()
35    ow.show()
36    #data = orange.ExampleTable(r"e:\Development\Orange Datasets\UCI\wine.tab")
37    data = orange.ExampleTable('../../doc/datasets/iris')
38    ow.setData(data)
39    ow.handleNewSignals()
40    a.exec_()
Note: See TracBrowser for help on using the repository browser.