Example #1
0
        // Initial plot setup, modify this as needed
        private void ilPanel1_Load(object sender, EventArgs e)
        {
            // create some test data, using our private computation module as inner class
            ILArray <float> Pos = Computation.CreateData(4, 300);

            // setup the plot (modify as needed)
            ilPanel1.Scene.Add(new ILPlotCube(twoDMode: false)
            {
                new ILLinePlot(Pos, tag: "mylineplot")
                {
                    Line =
                    {
                        Width        =         2,
                        Color        = Color.Red,
                        Antialiasing = true,
                        DashStyle    = DashStyle.Dotted
                    }
                }
            });
            // register event handler for allowing updates on right mouse click:
            ilPanel1.Scene.First <ILLinePlot>().MouseClick += (_s, _a) =>
            {
                if (_a.Button == MouseButtons.Right)
                {
                    Update(ILMath.rand(3, 30));
                }
            };
        }
        // Initial plot setup, modify this as needed
        private void ilPanel1_Load(object sender, EventArgs e)
        {
            // create some test data, using our private computation module as inner class
            ILArray <float> Pos = Computation.CreateData(4, 300);

            Color color1 = System.Drawing.ColorTranslator.FromHtml("#1D8C00");
            Color color2 = System.Drawing.ColorTranslator.FromHtml("#FF3100");

            // setup the plot (modify as needed)
            ilPanel1.Scene.Add(new ILPlotCube(twoDMode: false)
            {
                new ILLinePlot(desiredOutput, tag: "mylineplot")
                {
                    Line =
                    {
                        Width     =           2,
                        Color     = Color.Green,
                        DashStyle = DashStyle.Dotted
                    }/*,
                      * Marker =
                      * {
                      * Size = 4,
                      * Style = MarkerStyle.Rectangle,
                      * ColorOverride = color1
                      * }*/
                },
                new ILLinePlot(realOutput, tag: "mylineplot")
                {
                    Line =
                    {
                        Width     =      2,
                        Color     = color2,
                        DashStyle = DashStyle.Dotted
                    }/*,
                      * Marker =
                      * {
                      * Size = 4,
                      * Style = MarkerStyle.Rectangle,
                      * ColorOverride = color2
                      * }*/
                },
                new ILLegend(@"Runge Kutta",
                             @"Perceptron")
                {
                    // legends are regular scene graph objects. This gives you complete freedom for
                    // further configuration ...
                    Background = { Color = Color.FromArgb(210, Color.White) }
                }
            });
            // register event handler for allowing updates on right mouse click:
            ilPanel1.Scene.First <ILLinePlot>().MouseClick += (_s, _a) =>
            {
                if (_a.Button == MouseButtons.Right)
                {
                    Update(ILMath.rand(3, 30));
                }
            };
        }
Example #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            m_panel = ILPanel.Create();
            Controls.Add(m_panel);

            ILLitSurface litSurf = new ILLitSurface(m_panel, Computation.CreateData(600, 600)
                                                    , new ILColormap(Colormaps.ILNumerics));

            m_panel.Graphs.AddPlot(litSurf);
            m_panel.Lights[0].Position    = new ILPoint3Df(150, 90, 550);
            m_panel.AspectRatio           = AspectRatioMode.MaintainRatios;
            m_panel.PlotBoxScreenSizeMode = PlotBoxScreenSizeMode.Maximum;
            m_panel.Axes.Visible          = false;
        }
Example #4
0
        // Initial plot setup, modify this as needed
        private void ilPanel1_Load(object sender, EventArgs e)
        {
            // create some test data, using our private computation module as inner class
            ILArray <float> Pos = Computation.CreateData(4, 300);

            // setup the plot (modify as needed)
            ilPanel1.Scene.Add(new ILPlotCube(twoDMode: true)
            {
                new ILPoints {
                    Positions = points,
                    Color     = Color.Green
                },
                new ILPoints {
                    Positions = neurons,
                    Color     = Color.Red
                }
            });
            // register event handler for allowing updates on right mouse click:
        }