68 var titleFont =
new Font(
"Arial", 12);
69 var axisFont =
new Font(
"Arial", 10);
70 var legendFont =
new Font(
"Arial", 10);
71 var tickFont =
new Font(
"Arial", 8);
77 Surface.SmoothingMode = SmoothingMode.HighQuality;
78 Surface.BackColor = Color.White;
79 Surface.Add(
new Grid(),
NPlot.PlotSurface2D.XAxisPosition.Bottom,
NPlot.PlotSurface2D.YAxisPosition.Left);
84 Surface.XAxis1.Label =
string.Empty;
85 Surface.XAxis1.LabelFont = axisFont;
86 Surface.XAxis1.TickTextFont = tickFont;
87 Surface.XAxis1.TicksLabelAngle = 0;
88 Surface.XAxis1.TickTextNextToAxis =
true;
89 Surface.XAxis1.FlipTicksLabel =
true;
90 Surface.XAxis1.LabelOffset = 95;
91 Surface.XAxis1.LabelOffsetAbsolute =
true;
94 Surface.YAxis1.LabelFont = axisFont;
95 Surface.YAxis1.LabelOffsetScaled =
true;
96 Surface.YAxis1.TickTextFont = tickFont;
97 Surface.YAxis1.NumberFormat =
"{0:####0.00}";
101 Surface.YAxis2.Label =
"Value";
102 Surface.YAxis2.LabelFont = axisFont;
103 Surface.YAxis2.TickTextFont = tickFont;
104 Surface.YAxis2.NumberFormat =
"{0:####0.00}";
108 var legend =
new Legend {Font = legendFont};
109 legend.AttachTo(
NPlot.PlotSurface2D.XAxisPosition.Top,
NPlot.PlotSurface2D.YAxisPosition.Left);
110 legend.VerticalEdgePlacement = Legend.Placement.Inside;
111 legend.HorizontalEdgePlacement = Legend.Placement.Inside;
112 legend.BorderStyle = LegendBase.BorderType.Line;
113 legend.BackgroundColor = Color.White;
NPlot.Bitmap.PlotSurface2D PlotSurface2D
static readonly object Locker
readonly IGraphBaseConfiguration baseConfig