NPlot.Windows.PlotSurface2D.CacheAxes C# (CSharp) Method

CacheAxes() public method

Remembers the current axes - useful in interactions.
public CacheAxes ( ) : void
return void
        public void CacheAxes()
        {
            if (xAxis1ZoomCache_ == null && xAxis2ZoomCache_ == null &&
                yAxis1ZoomCache_ == null && yAxis2ZoomCache_ == null)
            {
                if (this.XAxis1 != null)
                {
                    xAxis1ZoomCache_ = (DateTimeAxis)this.XAxis1.Clone();
                }
                if (this.XAxis2 != null)
                {
                    xAxis2ZoomCache_ = (DateTimeAxis)this.XAxis2.Clone();
                }
                if (this.YAxis1 != null)
                {
                    yAxis1ZoomCache_ = (LinearAxis)this.YAxis1.Clone();
                }
                if (this.YAxis2 != null)
                {
                    yAxis2ZoomCache_ = (LinearAxis)this.YAxis2.Clone();
                }
            }
        }