DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Using VBS, how to graph a curve in a in a “y sub axis” created using GraphObjYAxisNew inside a “2D-axis”

Try this:
Option Explicit
 
Dim nAxis
 
Call GraphObjOpen("2DAxis1")
 
' Create new axis
nAxis = GraphObjYAxisNew("left")
 
' Create new curve
Call GraphObjNew( "2D-Curve","2DCurve2")
Call GraphObjOpen("2DCurve2")
 
' Assing axis to curve
D2CAxisPairNo = nAxis
 
' do some other settings
D2CCHNEXPAND  = 1
D2CCHNXNAME   = "[1]/Zeit"
D2CCHNYNAME   = "[1]/Drehzahl"
D2CCURVETYPE  = "Line"
D2CURVECOLOR  = "blue"
 
Call GraphObjClose("2DCurve2")
 
Call GraphObjClose("2DAxis1")
 
' update report
Call PicUpdate()
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 3
(3,953 Views)
Thank you Twigeater , That worked, I didn’t know how to assign a curve to one specific axis
0 Kudos
Message 3 of 3
(3,948 Views)