private void ShowValueOnHover2_Load(object sender, EventArgs e) { int pointCount = 100; Random rand = new Random(0); double[] xs = DataGen.Consecutive(pointCount, 0.1); double[] ys = DataGen.NoisySin(rand, pointCount); sph = formsPlot1.Plot.PlotScatterHighlight(xs, ys); formsPlot1.Render(); }
public ShowValueOnHover() { InitializeComponent(); int pointCount = 100; Random rand = new Random(0); double[] xs = DataGen.Consecutive(pointCount, 0.1); double[] ys = DataGen.NoisySin(rand, pointCount); sph = wpfPlot1.plt.PlotScatterHighlight(xs, ys); wpfPlot1.Render(); }
private void LinkedPlots_Load(object sender, EventArgs e) { Random rand = new Random(0); int pointCount = 5000; double[] dataXs = DataGen.Consecutive(pointCount); double[] dataSin = DataGen.NoisySin(rand, pointCount); double[] dataCos = DataGen.NoisySin(rand, pointCount); formsPlot1.plt.PlotScatter(dataXs, dataSin); formsPlot1.Render(); formsPlot2.plt.PlotScatter(dataXs, dataCos); formsPlot2.Render(); }
public ShowValueOnHover() { this.InitializeComponent(); #if DEBUG this.AttachDevTools(); #endif avaPlot1 = this.Find <AvaPlot>("avaPlot1"); int pointCount = 100; Random rand = new Random(0); double[] xs = DataGen.Consecutive(pointCount, 0.1); double[] ys = DataGen.NoisySin(rand, pointCount); sph = avaPlot1.Plot.PlotScatterHighlight(xs, ys); avaPlot1.Render(); avaPlot1.PointerMoved += MouseMove; }
public void Render(Plot plt) { int pointCount = 100; Random rand = new Random(0); double[] xs = DataGen.Consecutive(pointCount, 0.1); double[] ys = DataGen.NoisySin(rand, pointCount); // optional arguments customize highlighted point color, shape, and size var sph = plt.PlotScatterHighlight(xs, ys); // you can clear previously-highlighted points sph.HighlightPoint(4); sph.HighlightClear(); // highlight the point nearest an X (or Y) position plt.PlotVLine(8.123, lineStyle: LineStyle.Dash); sph.HighlightPointNearestX(8.123); // or highlight the point nearest another point in 2D space plt.PlotPoint(4.43, 1.48); sph.HighlightPointNearest(4.43, 1.48); }