From 55ae5ef899395161fb0b44f0105e607b0a9773ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Thu, 3 Nov 2016 18:35:25 +0100 Subject: [PATCH] tests - fix import and attributes --- test/VisuPrs/SWIG_scripts/B6.py | 1 + test/VisuPrs/SWIG_scripts/B7.py | 19 ++++++++++++++----- test/VisuPrs/SWIG_scripts/B9.py | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) 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 -- 2.39.2