public void ExecuteRecipe(Plot plt) { // create sample data to represent test scores Random rand = new Random(0); double[] scores = DataGen.RandomNormal(rand, 35, 85, 5); // First, create a Population object from your test scores var pop = new Statistics.Population(scores); // You can access population statistics as public fields plt.Title($"Mean: {pop.mean} +/- {pop.stdErr}"); // You can plot a population plt.AddPopulation(pop); // improve the style of the plot plt.XAxis.Ticks(true); plt.XAxis.Grid(false); }