DIAdem Help

Property: CurveRelatedYScalingName for 2DCurve

  • Updated2024-09-12
  • 2 minute(s) read

Property: CurveRelatedYScalingName for 2DCurve

Assigns a curve-related y-scaling to a curve in a 2D axis system in DIAdem VIEW.

Note  You can only apply curve-related y-scalings to a 2D axis system if YScaling is set to n systems [phys.] or n axes [phys.].
Object.CurveRelatedYScalingName
Object2DCurve
Object with this property
Object.CurveRelatedYScalingNameString with read and write access

The following example creates a 2D axis system with three curves and assigns a curve-related y-scaling to each curve:

VBScriptPython

 

Dim oMyChart 
View.NewLayout
View.ActiveSheet.ActiveArea.DisplayObjType = "CurveChart2D"
Set oMyChart = View.ActiveSheet.ActiveArea.DisplayObj
oMyChart.YScaling = "n systems [phys.]"
oMyChart.UseCurveRelatedYScaling = TRUE

Dim oMyYScalingList, oMyYScaling1, oMyYScaling2
Set oMyYScalingList = view.ActiveSheet.ActiveArea.DisplayObj.YScalingList

Set oMyYScaling1 = oMyYScalingList.Add ("MyScaling1","Scale1")
oMyYScaling1.Mode = eVIEWYScalingModeAutomatic

Set oMyYScaling2 = oMyYScalingList.Add ("MyScaling2","Scale2")
oMyYScaling2.Mode = eVIEWYScalingModeManual
oMyYScaling2.Begin = 4000
oMyYScaling2.End = 7500

Dim oMyCurve1, oMyCurve2, oMyCurve3  
Set oMyCurve1 = oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]")
oMyCurve1.CurveRelatedYScalingName = "MyScaling1"
Set oMyCurve2 = oMyChart.Curves2D.Add("[1]/[1]","[1]/[3]")
oMyCurve2.CurveRelatedYScalingName = "MyScaling2"
Set oMyCurve3 = oMyChart.Curves2D.Add("[1]/[1]","[1]/[4]")
oMyCurve3.CurveRelatedYScalingName = "MyScaling1"

Log in to get a better experience