Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            double[] xs = DataGen.Consecutive(51);
            double[] ys = DataGen.Sin(51);
            ys = DataGen.InsertNanRanges(ys, new Random(0));

            Scatter       = formsPlot1.Plot.AddScatter(xs, ys);
            Scatter.OnNaN = ScottPlot.Plottable.ScatterPlot.NanBehavior.Gap;

            Marker = formsPlot1.Plot.AddMarker(0, 0, MarkerShape.openCircle, 20, Color.Red);
            formsPlot1.MouseMove += FormsPlot1_MouseMove;
            formsPlot1.Refresh();
        }