public ContourPlotValue Function(MatrixValue X, MatrixValue Y, MatrixValue Z)
        {
            var plot = new ContourPlotValue();

            plot.AddPoints(X, Y, Z);
            return(plot);
        }
Example #2
0
 public ContourPlotValue Function(MatrixValue X, MatrixValue Y, MatrixValue Z, MatrixValue v)
 {
     var plot = new ContourPlotValue();
     plot.AddPoints(X, Y, Z);
     plot.SetLevels(v);
     return plot;
 }
        public ContourPlotValue Function(MatrixValue Z, MatrixValue v)
        {
            var plot = new ContourPlotValue();

            plot.AddPoints(Z);
            plot.SetLevels(v);
            return(plot);
        }
Example #4
0
 public ContourPlotValue Function(MatrixValue X, MatrixValue Y, MatrixValue Z, ScalarValue n)
 {
     var nn = n.GetIntegerOrThrowException("n", Name);
     var plot = new ContourPlotValue();
     plot.AddPoints(X, Y, Z);
     plot.SetLevels(nn);
     return plot;
 }
        public ContourPlotValue Function(MatrixValue X, MatrixValue Y, MatrixValue Z, ScalarValue n)
        {
            var nn   = n.GetIntegerOrThrowException("n", Name);
            var plot = new ContourPlotValue();

            plot.AddPoints(X, Y, Z);
            plot.SetLevels(nn);
            return(plot);
        }
Example #6
0
        public SumericsContourPlot(ContourPlotValue plot) :
            base(plot)
        {
            var model = _model.Model;

            _plot = plot;
            model.Axes.Add(new LinearAxis {
                Position = AxisPosition.Bottom
            });
            model.Axes.Add(new LinearAxis {
                Position = AxisPosition.Left
            });
            UpdateSeries();
            UpdateProperties();
        }
Example #7
0
        public ContourViewModel(ContourPlotValue value)
        {
            _value        = value;
            _title        = value[0].Label;
            _colorPalette = value.ColorPalette;
            _showLevels   = value.ShowLevel;
            _save         = new RelayCommand(x =>
            {
                var window          = x as Window;
                _value.ColorPalette = _colorPalette;
                _value[0].Label     = _title;
                _value.ShowLevel    = _showLevels;
                _value.UpdateProperties();

                if (window != null)
                {
                    window.Close();
                }
            });
        }
Example #8
0
 public ContourPlotValue Function(MatrixValue Z)
 {
     var plot = new ContourPlotValue();
     plot.AddPoints(Z);
     return plot;
 }