Пример #1
0
        /// <summary>
        /// Plot with built-in waveform in the library
        /// </summary>
        /// <param name="builtInWfmIndex"></param>
        public void Plot(stdWfm wfmType)
        {
            ///Colormap and part of the colorbar function could only be modified in the static state.
            ///This will ensure the best efficiency in run-time status.

            switch (wfmType)
            {
            case stdWfm.Sinc:
                _displayData = ILSpecialData.sinc(128, 128) + 1;
                break;

            case stdWfm.Waterfall:
                _displayData = ILSpecialData.waterfall(128, 128) + 1;
                break;

            default:
                _displayData = ILSpecialData.sinc(128, 128) + 1;
                break;
            }
            _panel.Graphs.Clear();
            _sgr         = _panel.Graphs.AddSurfGraph(_displayData);
            _sgr.Opacity = 0.8f;
            _sgr.Shading = ShadingStyles.Interpolate;
            ApplyProperties();
            AutoScaleColorRange();
            UpdateGraph();
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            m_panel = ILPanel.Create();
            Controls.Add(m_panel);

            ILArray <double> B   = ILSpecialData.sinc(40, 50) + 1;
            ILSurfaceGraph   sgr = m_panel.Graphs.AddSurfGraph(B);
            ILImageSCGraph   igr = m_panel.Graphs.AddImageSCGraph(B);

            igr.ZPosition                 = float.NegativeInfinity;
            sgr.Opacity                   = 0.8f;
            sgr.Wireframe.Visible         = false;
            sgr.Shading                   = ShadingStyles.Interpolate;
            m_panel.Axes.XAxis.Label.Text = "\\Omega, a \\bfgreek \\resetLetter";
        }
Пример #3
0
        /// <summary>
        /// Plot with assigned double data (2 dimension)
        /// </summary>
        /// <param name="z"></param>
        public void Plot(double[,] z)
        {
            ///Colormap and part of the colorbar function could only be modified in the static state.
            ///This will ensure the best efficiency in run-time status.

            _panel.Graphs.Clear();

            _displayData = z;
            _sgr         = _panel.Graphs.AddSurfGraph(_displayData);
            //_sgr.Opacity = 0.8f;
            //_sgr.Shading = ShadingStyles.Interpolate;
            //ApplyProperties();
            //AutoScaleColorRange();
            UpdateGraph();
        }
Пример #4
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ILArray <double> B     = ILNumerics.Algorithms.ILSpecialData.sinc(40, 50);
            ILSurfaceGraph   surfg = m_panel.Graphs.AddSurfGraph(B);

            surfg.Wireframe.Style         = LineStyle.PointDash;
            surfg.Wireframe.Color         = Color.Cornsilk;
            surfg.Wireframe.Visible       = false;
            surfg.Opacity                 = 0.4f;
            surfg.Label.Text              = @"B\bfu\fontsize{+3}b\color{red}b\resetle";
            surfg.Label.Padding           = 30;
            m_panel.Axes.XAxis.Label.Text = @"\Omega ist \color{red} schön.";
            m_panel.Projection            = Projection.Orthographic;
            m_panel.Legend.Visible        = true;
            //m_panel.Legend.BackgroundColor = Color.Wheat;
            //m_panel.Legend.Border.Style = LineStyle.Dotted;
        }