source: orange/orange/OrangeWidgets/Visualize Qt/OWRadvizQt.py @ 8173:a88f5eb57e4f

Revision 8173:a88f5eb57e4f, 1.8 KB checked in by Noughmad <Noughmad@…>, 3 years ago (diff)

Copy the Qt visualizations to trunk

Line 
1"""
2<name>Radviz (Qt)</name>
3<description>Create a radviz projection.</description>
4<contact>Gregor Leban (gregor.leban@fri.uni-lj.si)</contact>
5<icon>icons/Radviz.png</icon>
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
26        self.inputs = [("Examples", ExampleTable, self.setData, Default), ("Example Subset", ExampleTable, self.setSubsetData), ("Attribute Selection List", AttributeList, self.setShownAttributes), ("Evaluation Results", orngTest.ExperimentResults, self.setTestResults), ("VizRank Learner", orange.Learner, self.setVizRankLearner)]
27        self.outputs = [("Selected Examples", ExampleTable), ("Unselected Examples", ExampleTable), ("Attribute Selection List", AttributeList)]
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.