Exemplo n.º 1
0
        public PlotSample()
        {
            plotSurface = new NPlot.Gtk.InteractivePlotSurface2D();

            // Set defaults for the sample plotSurface
            plotSurface.AutoScaleAutoGeneratedAxes = false;
            plotSurface.AutoScaleTitle             = false;
            plotSurface.Canvas.ModifyBg(StateType.Normal);
            plotSurface.Legend          = null;
            plotSurface.Canvas.Name     = "plotSurface";
            plotSurface.ShowCoordinates = true;
            plotSurface.SmoothingMode   = System.Drawing.Drawing2D.SmoothingMode.None;
            plotSurface.Title           = "";
            plotSurface.TitleFont       = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
        }
Exemplo n.º 2
0
        public PlotSample()
        {
            plotSurface = new NPlot.Gtk.InteractivePlotSurface2D ();

            // Set defaults for the sample plotSurface
            plotSurface.AutoScaleAutoGeneratedAxes = false;
            plotSurface.AutoScaleTitle = false;
            plotSurface.Canvas.ModifyBg (StateType.Normal);
            plotSurface.Legend = null;
            plotSurface.Canvas.Name = "plotSurface";
            plotSurface.ShowCoordinates = true;
            plotSurface.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
            plotSurface.Title = "";
            plotSurface.TitleFont = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
        }
Exemplo n.º 3
0
        private void InitializeComponent()
        {
            //
            // closeButton
            //
            this.closeButton = new Gtk.Button("Close");
            this.closeButton.Clicked += new System.EventHandler(this.closeButton_Click);

            //
            // volumePS
            //
            this.volumePS = new NPlot.Gtk.InteractivePlotSurface2D();
            this.volumePS.AutoScaleAutoGeneratedAxes = false;
            this.volumePS.AutoScaleTitle = false;
            this.volumePS.Canvas.ModifyBg (StateType.Normal);
            this.volumePS.Legend = null;
            this.volumePS.Canvas.Name = "volumePS";
            // HWT this.volumePS.RightMenu = null;
            // HWT this.volumePS.ShowCoordinates = false;
            this.volumePS.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
            this.volumePS.Title = "";
            this.volumePS.TitleFont = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
            this.volumePS.XAxis1 = null;
            this.volumePS.XAxis2 = null;
            this.volumePS.YAxis1 = null;
            this.volumePS.YAxis2 = null;

            //
            // costPS
            //
            this.costPS = new NPlot.Gtk.InteractivePlotSurface2D();
            this.costPS.AutoScaleAutoGeneratedAxes = false;
            this.costPS.AutoScaleTitle = false;
            this.costPS.Canvas.ModifyBg (StateType.Normal);
            this.costPS.Legend = null;
            this.costPS.Canvas.Name = "costPS";
            // HWT this.costPS.RightMenu = null;
            // HWT this.costPS.ShowCoordinates = false;
            this.costPS.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
            this.costPS.Title = "";
            this.costPS.TitleFont = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
            this.costPS.XAxis1 = null;
            this.costPS.XAxis2 = null;
            this.costPS.YAxis1 = null;
            this.costPS.YAxis2 = null;

            //
            // FinancialDemo
            //
            this.SetSizeRequest (630, 450);
            //
            // Define a 10x10 table on which to lay out the plots and button
            //
            Gtk.Table layout = new Gtk.Table ( 10, 10, true );
            layout.BorderWidth = 4;
            Add( layout );

            AttachOptions opt = AttachOptions.Expand | AttachOptions.Fill;
            uint xpad = 2, ypad = 10;

            layout.Attach (costPS.Canvas, 0, 10, 0, 6);
            layout.Attach (volumePS.Canvas, 0, 10, 6, 9);
            layout.Attach (closeButton, 1,2, 9,10, opt,opt, xpad,ypad );
            this.Name = "PlotSurface2DDemo";

            this.Name = "FinancialDemo";
        }
Exemplo n.º 4
0
        private void InitializeComponent()
        {
            //
            // closeButton
            //
            this.closeButton          = new Gtk.Button("Close");
            this.closeButton.Clicked += new System.EventHandler(this.closeButton_Click);

            //
            // volumePS
            //
            this.volumePS = new NPlot.Gtk.InteractivePlotSurface2D();
            this.volumePS.AutoScaleAutoGeneratedAxes = false;
            this.volumePS.AutoScaleTitle             = false;
            this.volumePS.Canvas.ModifyBg(StateType.Normal);
            this.volumePS.Legend      = null;
            this.volumePS.Canvas.Name = "volumePS";
            // HWT this.volumePS.RightMenu = null;
            // HWT this.volumePS.ShowCoordinates = false;
            this.volumePS.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
            this.volumePS.Title         = "";
            this.volumePS.TitleFont     = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
            this.volumePS.XAxis1        = null;
            this.volumePS.XAxis2        = null;
            this.volumePS.YAxis1        = null;
            this.volumePS.YAxis2        = null;

            //
            // costPS
            //
            this.costPS = new NPlot.Gtk.InteractivePlotSurface2D();
            this.costPS.AutoScaleAutoGeneratedAxes = false;
            this.costPS.AutoScaleTitle             = false;
            this.costPS.Canvas.ModifyBg(StateType.Normal);
            this.costPS.Legend      = null;
            this.costPS.Canvas.Name = "costPS";
            // HWT this.costPS.RightMenu = null;
            // HWT this.costPS.ShowCoordinates = false;
            this.costPS.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
            this.costPS.Title         = "";
            this.costPS.TitleFont     = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
            this.costPS.XAxis1        = null;
            this.costPS.XAxis2        = null;
            this.costPS.YAxis1        = null;
            this.costPS.YAxis2        = null;

            //
            // FinancialDemo
            //
            this.SetSizeRequest(630, 450);
            //
            // Define a 10x10 table on which to lay out the plots and button
            //
            Gtk.Table layout = new Gtk.Table(10, 10, true);
            layout.BorderWidth = 4;
            Add(layout);

            AttachOptions opt = AttachOptions.Expand | AttachOptions.Fill;
            uint          xpad = 2, ypad = 10;

            layout.Attach(costPS.Canvas, 0, 10, 0, 6);
            layout.Attach(volumePS.Canvas, 0, 10, 6, 9);
            layout.Attach(closeButton, 1, 2, 9, 10, opt, opt, xpad, ypad);
            this.Name = "PlotSurface2DDemo";

            this.Name = "FinancialDemo";
        }