X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test%2FVisuPrs%2F2D_viewer%2FA0.py;h=adeebd65315ae64464e0b2e2a9b8cc68d0862b1f;hb=8916d331bf9f1cc282cef3b3ff6f3710022c698f;hp=3d8b6173cba44ca7667b7a6b6f07eb28d321323b;hpb=89c33033151baa33eeac8fb09d9c0488acb43c35;p=modules%2Fparavis.git diff --git a/test/VisuPrs/2D_viewer/A0.py b/test/VisuPrs/2D_viewer/A0.py index 3d8b6173..adeebd65 100755 --- a/test/VisuPrs/2D_viewer/A0.py +++ b/test/VisuPrs/2D_viewer/A0.py @@ -1,4 +1,4 @@ -# Copyright (C) 2010-2012 CEA/DEN, EDF R&D +# Copyright (C) 2010-2013 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -36,20 +36,24 @@ aXYPlot.ChartTitle = ' ' aXYPlot.ChartTitle = 'title of XY plot' print "Chart title for xyplot ...", aXYPlot.ChartTitle -# Show left and bottom axis -aXYPlot.ShowAxis = [1, 1, 0, 0] +error = 0 +try: + aXYPlot.ShowAxis = [1, 1, 0, 0] +except: + print "Error: ShowAxis property is not avaliable for XYPlotView" + error = error + 1 + +aXYPlot.AxisUseCustomRange = [1, 1, 0, 0] # Show grids aXYPlot.ShowAxisGrid = [1, 1, 0, 0] -# Set axis range for left and bottom axis -aXYPlot.AxisBehavior = [1, 1, 0, 0] - aMinX = 0 aMaxX = 100 aMinY = 0 aMaxY = 10 -aXYPlot.AxisRange = [aMinX, aMaxX, aMinY, aMaxY, 0.0, 1.0, 0.0, 1.0] +aXYPlot.BottomAxisRange = [aMinX, aMaxX] +aXYPlot.LeftAxisRange = [aMinY, aMaxY] # Set horizontal scaling for left and bottom axis print "Default logarithmic scaling ...", aXYPlot.AxisLogScale @@ -73,3 +77,6 @@ print "Title of the bottom axis ...", aXYPlot.AxisTitle[1] # Show/hide legend aXYPlot.ShowLegend = 1 aXYPlot.ShowLegend = 0 + +if error > 0: + raise RuntimeError, "There is(are) some error(s) was(were) found... For more info see ERRORs above..."