Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SpectrumTable = new SpectrumTable();
            SpectrumChart = new SpectrumChart("Spectrum", SpectrumTable);
            ChartForm     = new ChartForm();
            ChartForm.AddForm(SpectrumChart);
            ChartForm.Show();
            Application.Run(new MainForm());
        }
Ejemplo n.º 2
0
        public SpectrumChart(string name, SpectrumTable st) : base(name)
        {
            SpectrumTable        = st;
            SpectrumTable.Status = TableStatus.Downloading;
            SpectrumTable.DataViews.Add(this);

            AddArea(MainArea = new OscillatorArea(this, "Main", 0.3f)
            {
                HasXAxisBar         = true,
                Reference           = -50,
                UpperLimit          = -20,
                LowerLimit          = -80,
                UpperColor          = Color.Green,
                LowerColor          = Color.DarkOrange,
                FixedTickStep_Right = 10,
            });

            MainArea.AddSeries(MainSeries = new LineSeries(SpectrumDatum.Column_Amplitude)
            {
                Color          = Color.Gray,
                IsAntialiasing = true,
                Tension        = 0
            });
        }