1 # VISU VISU_SWIG : binding of C++ implementation and Python
3 # Copyright (C) 2003 CEA/DEN, EDF R&D
8 # Author : Alexey Petrov
19 from visu_table import *
21 myViewMan = myVisu.GetViewManager()
23 myTable = myViewMan.CreateTableView(myVisuTableReal)
24 myTitle = myTable.GetTitle()
25 myTable.SetTitle('Changed Title')
27 myPlot = myViewMan.CreateXYPlot()
28 myTitle = myPlot.GetTitle()
29 myPlot.SetTitle('Change the title from python')
31 mySubTitle = myPlot.GetSubTitle()
32 myPlot.SetSubTitle(myTitle)
34 myXTitle = myPlot.GetXTitle()
35 myYTitle = myPlot.GetYTitle()
36 myPlot.SetXTitle(myYTitle)
37 myPlot.SetYTitle(myXTitle)
39 myPlot.GetMarkerSize()
40 myPlot.SetMarkerSize(20)
41 myPlot.GetMarkerSize()
44 myPlot.SetCurveType(VISU.XYPlot.POINTS)
45 myPlot.SetCurveType(VISU.XYPlot.MULTYLINE)
47 myPlot.SetCurveType(VISU.XYPlot.SPLINE)
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()
55 myPlot.SetVerScaling(VISU.LOGARITHMIC)
56 myPlot.GetVerScaling()
57 myPlot.EnableYGrid(1,2,1,10)
60 myPlot.SetMarkerSize(5)
61 myPlot.GetMarkerSize()