private void PlotRandomData(object sender, RoutedEventArgs e) { avaPlot1.Reset(); int pointCount = 5; Random rand = new Random(); double[] dataX = DataGen.Consecutive(pointCount); double[] dataY = DataGen.Random(rand, pointCount); string[] labels = { "One", "Two", "Three", "Four", "Five" }; avaPlot1.plt.PlotScatter(dataX, dataY, label: "series 1"); avaPlot1.plt.Title("Plot Title"); avaPlot1.plt.XLabel("Horizontal Axis"); avaPlot1.plt.YLabel("Vertical Axis"); avaPlot1.plt.XTicks(dataX, labels); avaPlot1.plt.XAxis.TickLabelStyle(rotation: 90); avaPlot1.plt.AxisAuto(); avaPlot1.plt.Layout(left: 20, top: 50, bottom: 100, right: 20); avaPlot1.Configure(recalculateLayoutOnMouseUp: false); avaPlot1.Render(); }