1 # VISU VISU_SWIG : binding of C++ implementation and Python
3 # Copyright (C) 2003 CEA/DEN, EDF R&D
8 # Author : Alexey Petrov
13 from batchmode_visu_table import *
15 myViewMan = myVisu.GetViewManager()
17 myTable = myViewMan.CreateTableView(myVisuTableReal)
18 myTitle = myTable.GetTitle()
19 myTable.SetTitle('Changed Title')
21 myPlot = myViewMan.CreateXYPlot()
22 myTitle = myPlot.GetTitle()
23 myPlot.SetTitle('Change the title from python')
25 mySubTitle = myPlot.GetSubTitle()
26 myPlot.SetSubTitle(myTitle)
28 myXTitle = myPlot.GetXTitle()
29 myYTitle = myPlot.GetYTitle()
30 myPlot.SetXTitle(myYTitle)
31 myPlot.SetYTitle(myXTitle)
33 myPlot.GetMarkerSize()
34 myPlot.SetMarkerSize(20)
35 myPlot.GetMarkerSize()
38 myPlot.SetCurveType(VISU.XYPlot.POINTS)
39 myPlot.SetCurveType(VISU.XYPlot.MULTYLINE)
41 myPlot.SetCurveType(VISU.XYPlot.SPLINE)
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()
49 myPlot.SetVerScaling(VISU.LOGARITHMIC)
50 myPlot.GetVerScaling()
51 myPlot.EnableYGrid(1,2,1,10)
54 myPlot.SetMarkerSize(5)
55 myPlot.GetMarkerSize()
57 myPlot.Display(myContainer)