source: orange/Orange/OrangeWidgets/Visualize Qt/OWPolyvizQt.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 2.0 KB checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

RevLine 
[8173]1"""
2<name>Polyviz (Qt)</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>160</priority>
7"""
8# Polyviz.py
9#
10# Show data using Polyviz visualization method
11#
12from OWLinProjQt import *
13from OWPolyvizGraphQt import *
14
15
16###########################################################################################
17##### WIDGET : Polyviz visualization
18###########################################################################################
19class OWPolyvizQt(OWLinProjQt):
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        OWLinProjQt.__init__(self, parent, signalManager, "Polyviz (qt)", graphClass = OWPolyvizGraphQt)
27
[9546]28        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)]
29        self.outputs = [("Selected Data", ExampleTable), ("Other Data", ExampleTable), ("Features", AttributeList)]
[8173]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=OWPolyvizQt()
42    ow.show()
43    a.exec_()
44
45    #save settings
46    ow.saveSettings()
Note: See TracBrowser for help on using the repository browser.