-# 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
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
# 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..."