Object: 2DErrorBarLine
- Updated2024-09-12
- 1 minute(s) read
(2DLineAndPointsExtensions | 2DLineExtensions | 2DSpecialCombinationExtensions) > 2DAdditionalErrorBars > Object: 2DErrorBarLine
Object: 2DErrorBarLine
The 2DErrorBarLine object provides the curve parameters of an error bar in a 2D axis system in DIAdem REPORT.
The following example generates a 2D axis system with a curve and assigns an error bar to either side of this curve. DIAdem displays the error bars in green:
| VBScript | Python |
Dim oMyReportObj, oMyCurve, oMyPos, oMyShape, oMyErrorBars Call Data.Root.Clear() Call DataFileLoad(ProgramDrv & "examples\Data\Error_Bars.tdm","TDM","") Call Report.NewLayout() Set oMyReportObj = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem") Set oMyPos = oMyReportObj.Position.ByCoordinate oMyPos.X1 = 20 oMyPos.X2 = 80 oMyPos.Y1 = 20 oMyPos.Y2 = 80 Set oMyCurve = oMyReportObj.Curves2D.Add(e2DShapeLine, "MyCurve") Set oMyShape = oMyCurve.Shape oMyShape.XChannel.Reference = "[1]/[1]" oMyShape.YChannel.Reference = "[1]/[2]" Set oMyErrorBars = oMyShape.Extensions.ErrorBars oMyErrorBars.XErrorBar.Type = eErrorbarPositiveAndNegative oMyErrorBars.XErrorBar.PercentageErrorValue = 10 oMyErrorBars.Line.UseCurveColor = False Call oMyErrorBars.Line.Color.SetPredefinedColor(eColorIndexGreen) Call Report.Refresh()
Properties
Color | Interval | LineType | UseCurveColor | Width