DIAdem Help

Method: SetZoom for CurveChart2D

  • Updated2024-09-12
  • 2 minute(s) read

Method: SetZoom for CurveChart2D

Zooms the view in a 2D axis system in DIAdem VIEW to the specified section.

Object.SetZoom(X1, Y1, X2, Y2, YAutoScale)
ObjectCurveChart2D
Object with this method
X1Double
Specifies the lower value on the x-axis.
Y1Double
Specifies the lower value on the y-axis.
X2Double
Specifies the upper value on the x-axis.
Y2Double
Specifies the upper value on the y-axis.
YAutoScaleBoolean
If the value is True, DIAdem ignores the values Y1 and Y2 and scales the y-axis automatically. If the value is False, DIAdem scales the y-axis in the range between Y1 and Y2.

The following example zooms the displayed x-area between 0 and 10 and the displayed y-area between 5 and30 in a 2D axis system:

VBScriptPython

 

Dim oMyArea 
Set oMyArea = View.Sheets(1).Areas(1)
If oMyArea.DisplayObjType = "CurveChart2D" Then
  Call oMyArea.DisplayObj.SetZoom(0,5,10,30,False)
End If