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

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

Made XPM version of the icon 32x32.

Line 
1"""
2<name>Polyviz</name>
3<description>Polyviz (multiattribute) visualization.</description>
4<contact>Gregor Leban (gregor.leban@fri.uni-lj.si)</contact>
5<icon>icons/Polyviz.png</icon>
6<priority>3150</priority>
7"""
8# Polyviz.py
9#
10# Show data using Polyviz visualization method
11#
12from OWLinProj import *
13from OWPolyvizGraph import *
14
15
16###########################################################################################
17##### WIDGET : Polyviz visualization
18###########################################################################################
19class OWPolyviz(OWLinProj):
20    settingsList = ["graph.pointWidth", "graph.jitterSize", "graph.scaleFactor", "graph.useAntialiasing",
21                    "graph.showLegend", "graph.showFilledSymbols", "graph.optimizedDrawing", "graph.useDifferentSymbols", "autoSendSelection",
22                    "graph.useDifferentColors", "graph.tooltipKind", "graph.tooltipValue", "toolbarSelection", "VizRankLearnerName",
23                    "colorSettings", "selectedSchemaIndex", "addProjectedPositions", "showAllAttributes", "graph.lineLength"]
24
25    def __init__(self,parent=None, signalManager = None):
26        OWLinProj.__init__(self, parent, signalManager, "Polyviz", graphClass = OWPolyvizGraph)
27
28        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)]
29        self.outputs = [("Selected Examples", ExampleTable), ("Unselected Examples", ExampleTable), ("Attribute Selection List", AttributeList)]
30
31        # SETTINGS TAB
32        self.extraTopBox.show()
33        OWGUI.hSlider(self.extraTopBox, self, 'graph.lineLength', box='Line length: ', minValue=0, maxValue=10, step=1, callback = self.updateGraph)
34
35
36
37
38#test widget appearance
39if __name__=="__main__":
40    a=QApplication(sys.argv)
41    ow=OWPolyviz()
42    ow.show()
43    a.exec_()
44
45    #save settings
46    ow.saveSettings()
Note: See TracBrowser for help on using the repository browser.