📄 plot.bas
字号:
Attribute VB_Name = "plot"
Public Sub plotip()
On Error Resume Next
Dim maxvalue, oldval As Double
mainfrm.ipplot.Line (0, 1450 / Screen.TwipsPerPixelY)-(10000, 1450 / Screen.TwipsPerPixelY), vbRed
For cnt = 0 To 512
If (maxvalue < FuncGen.Samples(cnt)) Then
maxvalue = FuncGen.Samples(cnt)
End If
Next cnt
oldval = 2900 / (2 * Screen.TwipsPerPixelY)
For cnt = 1 To 512
'mainfrm.ipplot.PSet (cnt, (2900 / (2 * Screen.TwipsPerPixelY)) - (FuncGen.Samples(cnt) * ((950 / Screen.TwipsPerPixelY) / maxvalue)))
mainfrm.ipplot.Line (cnt - 1, oldval)-(cnt, (2900 / (2 * Screen.TwipsPerPixelY)) - (FuncGen.Samples(cnt) * ((950 / Screen.TwipsPerPixelY) / maxvalue)))
oldval = (2900 / (2 * Screen.TwipsPerPixelY)) - (FuncGen.Samples(cnt) * ((950 / Screen.TwipsPerPixelY) / maxvalue))
Next cnt
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -