Method: SetZoom for CurveChart2D
- Updated2024-09-12
- 2 minute(s) read
DIAdem VIEW > Methods > Method: SetZoom for CurveChart2D
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)
| Object | CurveChart2D Object with this method |
| X1 | Double Specifies the lower value on the x-axis. |
| Y1 | Double Specifies the lower value on the y-axis. |
| X2 | Double Specifies the upper value on the x-axis. |
| Y2 | Double Specifies the upper value on the y-axis. |
| YAutoScale | Boolean 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:
| VBScript | Python |
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
See Also
Examples
Alignment Functions in DIAdem VIEW | Automatic Display of Harmonic Frequencies | Bird's Eye View Display | Calculating a Tangent to a Curve | Contour Display in DIAdem VIEW | Creating and Viewing Long Data Channels | Dynamic Display of Statistical Characteristic Values in DIAdem VIEW | Overlaying Objects in Videos | Planetary Motion | Synchronizing Videos and Data | Synchronizing Videos and Waveform Data | User Dialog Box in VIEW for the Calculation of the FFT and Harmonic Frequencies | Using a User Command to Calculate the Difference between the Y-Values | Various Display Modes in DIAdem VIEW | Vibration Data Analysis with Parallel Processing | Viewing and Automatically Analyzing Data