source: orange/orange/OrangeWidgets/Visualize/OWRadviz.py @ 6538:a5f65d7f0b2c

Revision 6538:a5f65d7f0b2c, 1.8 KB checked in by Mitar <Mitar@…>, 4 years ago (diff)

Made XPM version of the icon 32x32.

Line 
1"""
2<name>Radviz</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>3100</priority>
7"""
8# Radviz.py
9#
10# Show a radviz projection of the data
11#
12
13from OWLinProj import *
14
15class OWRadviz(OWLinProj):
16    settingsList = ["graph.pointWidth", "graph.jitterSize", "graph.showFilledSymbols", "graph.scaleFactor",
17                    "graph.showLegend", "graph.optimizedDrawing", "graph.useDifferentSymbols", "autoSendSelection", "graph.useDifferentColors",
18                    "graph.tooltipKind", "graph.tooltipValue", "toolbarSelection", "graph.showClusters", "clusterClassifierName", "graph.useAntialiasing",
19                    "valueScalingType", "graph.showProbabilities", "showAllAttributes",
20                    "learnerIndex", "colorSettings", "selectedSchemaIndex", "addProjectedPositions", "VizRankLearnerName"]
21
22    def __init__(self, parent=None, signalManager = None):
23        OWLinProj.__init__(self, parent, signalManager, "Radviz")
24
25        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)]
26        self.outputs = [("Selected Examples", ExampleTable), ("Unselected Examples", ExampleTable), ("Attribute Selection List", AttributeList)]
27
28
29
30#test widget appearance
31if __name__=="__main__":
32    a=QApplication(sys.argv)
33    ow=OWRadviz()
34    ow.show()
35    #data = orange.ExampleTable(r"e:\Development\Orange Datasets\UCI\wine.tab")
36    data = orange.ExampleTable(r"e:\Development\Orange Datasets\UCI\iris.tab")
37    ow.setData(data)
38    ow.handleNewSignals()
39    a.exec_()
Note: See TracBrowser for help on using the repository browser.