Пример #1
0
        public MainWindow()
        {
            InitializeComponent();

            // 3D plot
            graphBuilder3dForm = new GraphBuilder2DForm();

            functionPlot3d         = new Plot3D("functionPlot3d");
            coefficientsPlot3d     = new Plot3D("coefficientsPlot3d");
            restoredFunctionPlot3d = new Plot3D("restoredFunctionPlot3d");

            graphBuilder3dForm.GraphBuilder.Set3DMode();
            graphBuilder3dForm.GraphBuilder.ChartPanel.Aspect.Chart3DPercent = 100;

            graphBuilder3dForm.GraphBuilder.DrawPlot(functionPlot3d);
            graphBuilder3dForm.GraphBuilder.DrawPlot(coefficientsPlot3d);
            graphBuilder3dForm.GraphBuilder.DrawPlot(restoredFunctionPlot3d);
            graphBuilder3dForm.Show();

            // 2D plot
            graphBuilder2dForm = new GraphBuilder2DForm();

            originalFPlot        = new Plot2D("original F");
            coefficientsOfFPlot  = new Plot2D("coefficients of F");
            restoredFPlot        = new Plot2D("restored F");
            guessedGPlot         = new Plot2D("guessed G");
            guessedFFromGPlot    = new Plot2D("guessed F from G");
            guessedGCoefficients = new Plot2D("guessed coefficients of G");

            graphBuilder2dForm.GraphBuilder.DrawPlot(originalFPlot);
            graphBuilder2dForm.GraphBuilder.DrawPlot(coefficientsOfFPlot);
            graphBuilder2dForm.GraphBuilder.DrawPlot(restoredFPlot);
            graphBuilder2dForm.GraphBuilder.DrawPlot(guessedGPlot);
            graphBuilder2dForm.GraphBuilder.DrawPlot(guessedFFromGPlot);
            graphBuilder2dForm.GraphBuilder.DrawPlot(guessedGCoefficients);
            graphBuilder2dForm.Show();
        }