NPlot.PlotSurface2D.Remove C# (CSharp) Method

Remove() public method

Remove a drawable object. Note that axes are not updated.
public Remove ( IDrawable p, bool updateAxes ) : void
p IDrawable Drawable to remove.
updateAxes bool if true, the axes are updated.
return void
        public void Remove(IDrawable p, bool updateAxes)
        {
            int index = m_drawables.IndexOf(p);
            if (index < 0)
                return;
            m_drawables.RemoveAt(index);
            m_zPositions.RemoveAt(index);

            if (updateAxes)
            {
                UpdateAxes(true);
            }

            RefreshZOrdering();
        }