/// <summary>
 /// Clears the panel and displays only the coordinate axes.
 /// </summary>
 public void resetPlot()
 {
     backBuffer.Clear(System.Drawing.Color.WhiteSmoke);
     backBuffer.FillRectangle(brushFuncPanel, originX, 0, panelWidth, panelHeight);
     func = null;
     drawXYLabels();
     backBuffer.Flush();
     repaint();
 }
Exemple #2
0
        /// <summary>Plots the points of the function.</summary>
        private void drawLineCurve(HTuple tuple, float stepOffset)
        {
            int length;

            if (stepOffset > 1)
            {
                points = scaleDispValue(tuple);
            }
            else
            {
                points = scaleDispBlockValue(tuple);
            }
            length = points.Length;
            func   = new HFunction1D(tuple);
            for (int i = 0; i < length - 1; i++)
            {
                backBuffer.DrawLine(penCurve, points[i], points[i + 1]);
            }
        }
        /// <summary>Plots the points of the function.</summary>
        private void drawLineCurve(HTuple tuple, float stepOffset)
        {
            int length;

            if (stepOffset > 1)
                points = scaleDispValue(tuple);
            else
                points = scaleDispBlockValue(tuple);

            length = points.Length;

            func = new HFunction1D(tuple);

            for (int i = 0; i < length - 1; i++)
                backBuffer.DrawLine(penCurve, points[i], points[i + 1]);
        }
 /// <summary>
 /// Clears the panel and displays only the coordinate axes.
 /// </summary>
 public void resetPlot()
 {
     backBuffer.Clear(System.Drawing.Color.WhiteSmoke);
     backBuffer.FillRectangle(brushFuncPanel, originX, 0, panelWidth, panelHeight);
     func = null;
     drawXYLabels();
     backBuffer.Flush();
     repaint();
 }