Object: 2DErrorBarLine

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

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:

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()

WAS THIS ARTICLE HELPFUL?

Not Helpful