protected NPlot.Windows.PlotSurface2D CreateDefaultPlot() { NPlot.Windows.PlotSurface2D plotSurface2D = new NPlot.Windows.PlotSurface2D(); plotSurface2D.Clear(); plotSurface2D.Add(new Grid { VerticalGridType = Grid.GridType.Fine, HorizontalGridType = Grid.GridType.Fine }); plotSurface2D.AddInteraction(new NPlot.Windows.PlotSurface2D.Interactions.HorizontalGuideline()); LinePlot linePlot = new LinePlot(); linePlot.Color = Color.Green; plotSurface2D.Add(linePlot); DateTimeAxis xaxis = new DateTimeAxis(plotSurface2D.XAxis1); plotSurface2D.XAxis1 = xaxis; plotSurface2D.XAxis1.SmallTickSize = 0; plotSurface2D.XAxis1.LargeTickSize = 0; plotSurface2D.XAxis1.WorldMin = (double)DateTime.Now.Ticks; plotSurface2D.XAxis1.WorldMax = (double)(DateTime.Now.Ticks + 108000000000L); LinearAxis yaxis = new LinearAxis(plotSurface2D.YAxis1); plotSurface2D.YAxis1 = yaxis; plotSurface2D.YAxis1.WorldMin = 0.0; plotSurface2D.YAxis1.WorldMax = 10000.0; plotSurface2D.YAxis1.SmallTickSize = 0; plotSurface2D.YAxis1.LargeTickSize = 0; plotSurface2D.YAxis1.NumberFormat = "{0}"; plotSurface2D.PlotBackColor = Color.OldLace; plotSurface2D.SmoothingMode = SmoothingMode.AntiAlias; plotSurface2D.DateTimeToolTip = true; plotSurface2D.Remove(linePlot, false); plotSurface2D.Refresh(); return(plotSurface2D); }