PopulationSeries.cs 707 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace ScottPlot.Statistics
  5. {
  6. /// <summary>
  7. /// A population series is a collection of similar PopulationStats objects.
  8. /// </summary>
  9. public class PopulationSeries
  10. {
  11. public Population[] populations;
  12. public string seriesLabel;
  13. public System.Drawing.Color color;
  14. public PopulationSeries(Population[] populations, string seriesLabel = null, System.Drawing.Color? color = null)
  15. {
  16. this.populations = populations;
  17. this.seriesLabel = seriesLabel;
  18. this.color = (color is null) ? System.Drawing.Color.LightGray : color.Value;
  19. }
  20. }
  21. }