Object: LabelNumericY
- Updated2024-09-12
- 1 minute(s) read
(2DAxisSystem | 2DAxisYAxisList) > 2DAxisY > Object: LabelNumericY
Object: LabelNumericY
The LabelNumericY object provides the font attributes of a y-axis scale in DIAdem REPORT.
The following example generates a 2D axis system and specifies the numbers display on the y-axes:
| VBScript | Python |
Dim oMy2DAxisSystem, oMyPos, oMyCurve, oMyShape, oMyXNumericLabel, oMyYNumericLabel Call Data.Root.Clear() Call DataFileLoad(DataReadPath & "Report_Data.tdm","TDM","") Call Report.NewLayout() Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem") Set oMyPos = oMy2DAxisSystem.Position.ByCoordinate oMyPos.X1 = 20 oMyPos.X2 = 80 oMyPos.Y1 = 20 oMyPos.Y2 = 80 Set oMyCurve = oMy2DAxisSystem.Curves2D.Add(e2DShapeLine, "MyCurve") Set oMyShape = oMyCurve.Shape oMyShape.XChannel.Reference = "[1]/[1]" oMyShape.YChannel.Reference = "[1]/[2]" Set oMyYNumericLabel = oMy2DAxisSystem.YAxis.Numbers oMyYNumericLabel.UseCurveColor = True oMyYNumericLabel.Format = "d.dde" oMyYNumericLabel.Angle = 0 oMyYNumericLabel.Font.Name = "Tahoma" oMyYNumericLabel.Font.Size = 3 oMyYNumericLabel.RelativePosition = eRelativePositionLeft Call Report.Refresh()
Properties
Angle | Font | Format | RelativePosition | ShowEndLabels | TextAlignment | UseCurveColor