Salome HOME
Fix for Bug IPAL8945
[modules/visu.git] / src / VISU_SWIG / visu_view.py
1 #  VISU VISU_SWIG : binding of C++ implementation and Python
2 #
3 #  Copyright (C) 2003  CEA/DEN, EDF R&D
4 #
5 #
6 #
7 #  File   : test_table.py
8 #  Author : Alexey Petrov
9 #  Module : VISU
10 #  $Header: 
11
12 import SALOMEDS
13 import VISU
14
15 import salome
16 import SALOMEDS
17 from VISU import *
18
19 from visu_table import *
20
21 myViewMan = myVisu.GetViewManager()
22
23 myTable = myViewMan.CreateTableView(myVisuTableReal)
24 myTitle = myTable.GetTitle()
25 myTable.SetTitle('Changed Title')
26
27 myPlot = myViewMan.CreateXYPlot()
28 myTitle = myPlot.GetTitle()
29 myPlot.SetTitle('Change the title from python')
30
31 mySubTitle = myPlot.GetSubTitle()
32 myPlot.SetSubTitle(myTitle)
33
34 myXTitle = myPlot.GetXTitle()
35 myYTitle = myPlot.GetYTitle()
36 myPlot.SetXTitle(myYTitle)
37 myPlot.SetYTitle(myXTitle)
38
39 myPlot.GetMarkerSize()
40 myPlot.SetMarkerSize(20)
41 myPlot.GetMarkerSize()
42 myPlot.ShowLegend(0)
43
44 myPlot.SetCurveType(VISU.XYPlot.POINTS)
45 myPlot.SetCurveType(VISU.XYPlot.MULTYLINE)
46 myPlot.GetCurveType()
47 myPlot.SetCurveType(VISU.XYPlot.SPLINE)
48
49 myPlot.SetHorScaling(VISU.LOGARITHMIC)
50 myPlot.EnableXGrid(1,3,1,4)
51 myPlot.SetHorScaling(VISU.LINEAR)
52 myPlot.EnableXGrid(1,10,1,10)
53 myPlot.GetHorScaling()
54
55 myPlot.SetVerScaling(VISU.LOGARITHMIC)
56 myPlot.GetVerScaling()
57 myPlot.EnableYGrid(1,2,1,10)
58
59 myPlot.ShowLegend(1)
60 myPlot.SetMarkerSize(5)
61 myPlot.GetMarkerSize()
62