Esempio n. 1
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Ticks(rulerModeX: true, displayTicksY: false);
     plt.Frame(left: false, right: false, top: false);
     plt.TightenLayout(padding: 0, render: true);
 }
Esempio n. 2
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Title("Plot Title");
     plt.XLabel("Horizontal Axis");
     plt.YLabel("Vertical Axis");
 }
Esempio n. 3
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                plt.PlotHLine(y: .85, draggable: true, dragLimitLower: -1, dragLimitUpper: +1);
                plt.PlotVLine(x: 23, draggable: true, dragLimitLower: 0, dragLimitUpper: 50);
            }
Esempio n. 4
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                plt.PlotVSpan(y1: .15, y2: .85, label: "VSpan");
                plt.PlotHSpan(x1: 10, x2: 25, label: "HSpan");
                plt.Legend();
            }
Esempio n. 5
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                plt.PlotVSpan(y1: .15, y2: .85, label: "VSpan", draggable: true, dragLimitLower: -1, dragLimitUpper: 1);
                plt.PlotHSpan(x1: 10, x2: 25, label: "HSpan", draggable: true, dragLimitLower: 0, dragLimitUpper: 50);
                plt.Legend();
            }
Esempio n. 6
0
 public TransparentBackground()
 {
     InitializeComponent();
     GenericPlots.SinAndCos(formsPlot1.plt);
     formsPlot1.plt.Style(figBg: Color.Transparent, dataBg: Color.Transparent);
     formsPlot1.BackColor = Color.Transparent;
     button6_Click(null, null);
 }
 public TransparentBackground()
 {
     InitializeComponent();
     GenericPlots.SinAndCos(wpfPlot1.plt);
     wpfPlot1.plt.Style(figBg: System.Drawing.Color.Transparent);
     wpfPlot1.plt.Style(dataBg: System.Drawing.Color.Transparent);
     wpfPlot1.Render();
 }
Esempio n. 8
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                plt.PlotHLine(y: .85, label: "HLine");
                plt.PlotVLine(x: 23, label: "VLine");
                plt.PlotVLine(x: 33, label: "VLine too", color: Color.Magenta, lineWidth: 3, lineStyle: LineStyle.Dot);
                plt.Legend();
            }
Esempio n. 9
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                plt.PlotArrow(25, 0, 27, .2, label: "default");
                plt.PlotArrow(27, -.25, 23, -.5, label: "big", lineWidth: 10);
                plt.PlotArrow(12, 1, 12, 0, label: "skinny", arrowheadLength: 10);
                plt.PlotArrow(20, .6, 20, 1, label: "fat", arrowheadWidth: 10);
                plt.Legend(fixedLineWidth: false);
            }
Esempio n. 10
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                // custom colors are used to make it easier to see the data and figure areas
                plt.Style(figBg: Color.LightBlue);
                plt.Style(dataBg: Color.LightYellow);

                plt.Layout(yScaleWidth: 80, titleHeight: 50, xLabelHeight: 20, y2LabelWidth: 20);
            }
Esempio n. 11
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                // custom colors are used to make it easier to see the data and figure areas
                plt.Style(figBg: Color.LightBlue);
                plt.Style(dataBg: Color.LightYellow);

                plt.Ticks(false, false);
                plt.Frame(false);
                plt.TightenLayout(padding: 0);
            }
Esempio n. 12
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                double[] xPositions = { 7, 21, 37, 46 };
                string[] xLabels    = { "VII", "XXI", "XXXVII", "XLVI" };
                plt.XTicks(xPositions, xLabels);

                double[] yPositions = { -1, 0, .5, 1 };
                string[] yPabels    = { "bottom", "center", "half", "top" };
                plt.YTicks(yPositions, yPabels);
            }
Esempio n. 13
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                plt.Title("Impressive Graph", fontName: "courier new", fontSize: 24, color: Color.Purple, bold: true);
                plt.YLabel("vertical units", fontName: "impact", fontSize: 24, color: Color.Red, bold: true);
                plt.XLabel("horizontal units", fontName: "georgia", fontSize: 24, color: Color.Blue, bold: true);
                plt.PlotText("very graph", 25, .8, fontName: "comic sans ms", fontSize: 24, color: Color.Blue, bold: true);
                plt.PlotText("so data", 0, 0, fontName: "comic sans ms", fontSize: 42, color: Color.Magenta, bold: true);
                plt.PlotText("many documentation", 3, -.6, fontName: "comic sans ms", fontSize: 18, color: Color.DarkCyan, bold: true);
                plt.PlotText("wow.", 10, .6, fontName: "comic sans ms", fontSize: 36, color: Color.Green, bold: true);
                plt.PlotText("NuGet", 32, 0, fontName: "comic sans ms", fontSize: 24, color: Color.Gold, bold: true);
                plt.Legend(fontName: "comic sans ms", fontSize: 16, bold: true, fontColor: Color.DarkBlue);
                plt.Ticks(fontName: "comic sans ms", fontSize: 12, color: Color.DarkBlue);
            }
Esempio n. 14
0
            public void Render(Plot plt)
            {
                GenericPlots.SinAndCos(plt);

                plt.PlotPoint(25, 0.8, color: Color.Green);
                plt.PlotText(" important point", 25, 0.8, color: Color.Green);

                plt.PlotPoint(30, 0.3, color: Color.Black, markerSize: 15);
                plt.PlotText(" default alignment", 30, 0.3, fontSize: 16, bold: true, color: Color.Magenta);

                plt.PlotPoint(30, 0, color: Color.Black, markerSize: 15);
                plt.PlotText("middle center", 30, 0, fontSize: 16, bold: true, color: Color.Magenta, alignment: TextAlignment.middleCenter);

                plt.PlotPoint(30, -0.3, color: Color.Black, markerSize: 15);
                plt.PlotText("upper left", 30, -0.3, fontSize: 16, bold: true, color: Color.Magenta, alignment: TextAlignment.upperLeft);

                plt.PlotPoint(5, -.5, color: Color.Blue, markerSize: 15);
                plt.PlotText(" Rotated Text", 5, -.5, fontSize: 16, color: Color.Blue, bold: true, rotation: -30);

                plt.PlotText("Framed Text", 15, -.6, fontSize: 16, color: Color.White, bold: true, frame: true, frameColor: Color.DarkRed);
            }
Esempio n. 15
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Grid(enable: false);
 }
Esempio n. 16
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.PlotPoint(25, 0.8);
     plt.PlotPoint(30, 0.3, color: Color.Magenta, markerSize: 15);
 }
Esempio n. 17
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.AxisPan(-10, .5);
 }
Esempio n. 18
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.PlotText("demo text", 10, .5, fontName: "comic sans ms", fontSize: 42, color: Color.Magenta, bold: true);
 }
Esempio n. 19
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Frame(left: true, bottom: true, top: false, right: false);
 }
Esempio n. 20
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Style(figBg: Color.LightBlue);
     plt.Style(dataBg: Color.LightYellow);
 }
Esempio n. 21
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Style(ScottPlot.Style.Light1);
 }
Esempio n. 22
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.AxisZoom(2, 2);
 }
Esempio n. 23
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Grid(xSpacing: 2, ySpacing: .1);
 }
Esempio n. 24
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.AxisAuto();
 }
Esempio n. 25
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Ticks(rulerModeX: true, rulerModeY: true);
 }
Esempio n. 26
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.AxisAuto(horizontalMargin: 0, verticalMargin: 0.5);
 }
Esempio n. 27
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Style(ScottPlot.Style.Control);
 }
Esempio n. 28
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Ticks(displayTicksX: false);
 }
Esempio n. 29
0
 public void Render(Plot plt)
 {
     GenericPlots.SinAndCos(plt);
     plt.Axis(-10, 60, -3, 3);
 }