Example #1
0
 public PlotterForm(PlotStyle style, PlotScale scale, Stream inputStream)
 {
     _plotStyle = style;
     _plotScale = scale;
     Stream     = inputStream;
     InitializeComponent();
 }
Example #2
0
        internal static string GetXmlRepresentation(this PlotScale plotScale)
        {
            switch (plotScale)
            {
            case PlotScale.Linear:
            {
                return("linear");
            }

            case PlotScale.Log:
            {
                return("log");
            }

            case PlotScale.Ln:
            {
                return("ln");
            }

            case PlotScale.None:
            {
                return("none");
            }

            default:
            {
                throw new ArgumentException("Specified PlotScale value is not valid.");
            }
            }
        }
Example #3
0
 public PlotterForm(PlotStyle style, PlotScale scale)
 {
     _plotStyle = style;
     _plotScale = scale;
     InitializeComponent();
 }
Example #4
0
 private void LogToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _plotScale = PlotScale.Log;
     PlotResults();
 }
Example #5
0
 public SeriesBuilder WithPlotScale(PlotScale plotScale)
 {
     this.series.PlotScale = plotScale;
     return(this);
 }