■ HLineVector 클래스를 사용하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
using System.Drawing; using ScottPlot; using ScottPlot.Plottable; Plot plot = new Plot(800, 600); HLineVector hLineVector = new HLineVector(); hLineVector.Color = Color.DarkCyan; hLineVector.PositionLabel = true; hLineVector.PositionLabelBackground = hLineVector.Color; hLineVector.DragEnabled = true; hLineVector.Ys = new double[] { 50, 100, 150 }; plot.Add(hLineVector); |