Salome HOME
Merge with branch V2_2_0_VISU_improvement
[modules/visu.git] / src / VISU_SWIG / batchmode_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 from VISU import *
13 from batchmode_visu_table import *
14
15 myViewMan = myVisu.GetViewManager()
16
17 myTable = myViewMan.CreateTableView(myVisuTableReal)
18 myTitle = myTable.GetTitle()
19 myTable.SetTitle('Changed Title')
20
21 myPlot = myViewMan.CreateXYPlot()
22 myTitle = myPlot.GetTitle()
23 myPlot.SetTitle('Change the title from python')
24
25 mySubTitle = myPlot.GetSubTitle()
26 myPlot.SetSubTitle(myTitle)
27
28 myXTitle = myPlot.GetXTitle()
29 myYTitle = myPlot.GetYTitle()
30 myPlot.SetXTitle(myYTitle)
31 myPlot.SetYTitle(myXTitle)
32
33 myPlot.GetMarkerSize()
34 myPlot.SetMarkerSize(20)
35 myPlot.GetMarkerSize()
36 myPlot.ShowLegend(0)
37
38 myPlot.SetCurveType(VISU.XYPlot.POINTS)
39 myPlot.SetCurveType(VISU.XYPlot.MULTYLINE)
40 myPlot.GetCurveType()
41 myPlot.SetCurveType(VISU.XYPlot.SPLINE)
42
43 myPlot.SetHorScaling(VISU.LOGARITHMIC)
44 myPlot.EnableXGrid(1,3,1,4)
45 myPlot.SetHorScaling(VISU.LINEAR)
46 myPlot.EnableXGrid(1,10,1,10)
47 myPlot.GetHorScaling()
48
49 myPlot.SetVerScaling(VISU.LOGARITHMIC)
50 myPlot.GetVerScaling()
51 myPlot.EnableYGrid(1,2,1,10)
52
53 myPlot.ShowLegend(1)
54 myPlot.SetMarkerSize(5)
55 myPlot.GetMarkerSize()
56
57 myPlot.Display(myContainer)