Object: Segment
- Updated2024-09-12
- 1 minute(s) read
(Collections | CurveChart2D) > Segments > Object: Segment
Object: Segment
The Segment object provides access to a segment in a 2D axis system in DIAdem VIEW. Use the Segment object to specify the segment properties.
The following example creates a 2D axis system with colored background segments:
| VBScript | Python |
Dim oMySheet, oMyChart, oMySegment Call Data.Root.Clear() Call DataFileLoad(ProgramDrv & "Examples/Data/Segment.tdm") Call View.Sheets.RemoveAll() Call View.NewLayout() Set oMySheet = View.ActiveSheet oMySheet.ActiveArea.DisplayObjType = "CurveChart2D" Set oMyChart = oMySheet.ActiveArea.DisplayObj Call oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]") Set oMySegment = oMyChart.Segments.Add("[1]/[3]", "[1]/[4]", "X") oMySegment.Color = "grey" oMySegment.Transparency = 50
Properties
Color | ColorRGB | Direction | Index | Name | TagStored | TagTemporary | Transparency | XChannelName | YChannelName