DIAdem Help

Collection: CurveRelatedYScalings

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

Collection: CurveRelatedYScalings

The CurveRelatedYScalings object provides a collection of all y-scalings in a 2D axis system in DIAdem VIEW which several curves can use together. Use the CurveRelatedYScalings collection to delete scalings or to add new scalings.

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.].

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

VBScriptPython

 

Dim oMySheet, oMyChart 
Call View.Sheets.RemoveAll()
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.Name = "MySheet"
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"

Properties

Count

Methods

Add | Exists | Item | Remove | RemoveAll

Returned From

CurveChart2D.YScalingList