From: Cédric Aguerre Date: Thu, 3 Nov 2016 17:35:25 +0000 (+0100) Subject: tests - fix import and attributes X-Git-Tag: V8_2_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55ae5ef899395161fb0b44f0105e607b0a9773ba;p=modules%2Fparavis.git tests - fix import and attributes --- diff --git a/test/VisuPrs/SWIG_scripts/B6.py b/test/VisuPrs/SWIG_scripts/B6.py index 4bceb75a..9fc25ca6 100644 --- a/test/VisuPrs/SWIG_scripts/B6.py +++ b/test/VisuPrs/SWIG_scripts/B6.py @@ -22,6 +22,7 @@ from paravistest import tablesdir import pvsimple +from presentations import delete_pv_object # Define script for table of integer creation script_ti = """ diff --git a/test/VisuPrs/SWIG_scripts/B7.py b/test/VisuPrs/SWIG_scripts/B7.py index 0572304f..f58ba62f 100644 --- a/test/VisuPrs/SWIG_scripts/B7.py +++ b/test/VisuPrs/SWIG_scripts/B7.py @@ -55,17 +55,26 @@ pvsimple.Render(xy_view) xy_view.ShowLegend = 0 pvsimple.Render(xy_view) -xy_view.ShowAxis = [0, 0, 0, 0] +xy_view.ShowLeftAxisGrid = 0 +xy_view.ShowLeftAxisLabels = 0 +xy_view.ShowBottomAxisGrid = 0 +xy_view.ShowBottomAxisLabels = 0 +xy_view.ShowRightAxisGrid = 0 +xy_view.ShowRightAxisLabels = 0 +xy_view.ShowTopAxisGrid = 0 +xy_view.ShowTopAxisLabels = 0 pvsimple.Render(xy_view) -xy_view.ShowAxis = [1, 0, 0, 0] +xy_view.ShowLeftAxisGrid = 1 +xy_view.ShowLeftAxisLabels = 1 pvsimple.Render(xy_view) -xy_view.ShowAxis[1] = 1 +xy_view.ShowBottomAxisGrid = 1 +xy_view.ShowBottomAxisLabels = 1 pvsimple.Render(xy_view) # Set logarithmic scaling -xy_view.AxisLogScale[0] = 1 +xy_view.LeftAxisLogScale = 1 pvsimple.Render(xy_view) -xy_view.AxisLogScale[1] = 1 +xy_view.BottomAxisLogScale = 1 pvsimple.Render(xy_view) # Set representation properties diff --git a/test/VisuPrs/SWIG_scripts/B9.py b/test/VisuPrs/SWIG_scripts/B9.py index f38c9c8c..72ddba7a 100644 --- a/test/VisuPrs/SWIG_scripts/B9.py +++ b/test/VisuPrs/SWIG_scripts/B9.py @@ -20,7 +20,7 @@ # This case corresponds to: /visu/SWIG_scripts/B9 case from paravistest import datadir -from presentations import EntityType, ScalarMapOnField, CutPlanesOnField +from presentations import EntityType, ScalarMapOnField, CutPlanesOnField, delete_pv_object import pvsimple # Get view