Exemple #1
0
 public SubPlotValue Function(ScalarValue rows, ScalarValue columns)
 {
     var r = rows.GetIntegerOrThrowException("rows", Name);
     var c = columns.GetIntegerOrThrowException("columns", Name);
     var subplot = new SubPlotValue();
     subplot.Rows = r;
     subplot.Columns = c;
     return subplot;
 }
        public SubPlotValue Function(ScalarValue rows, ScalarValue columns)
        {
            var r       = rows.GetIntegerOrThrowException("rows", Name);
            var c       = columns.GetIntegerOrThrowException("columns", Name);
            var subplot = new SubPlotValue();

            subplot.Rows    = r;
            subplot.Columns = c;
            return(subplot);
        }
Exemple #3
0
 public SumericsSubPlot(SubPlotValue plot)
     : base(plot)
 {
     _model = new GridPlotModel
     {
         CanEditSeries = false,
         CanToggleGrid = false,
         Models        = new SubplotModels()
     };
     _plot = plot;
     UpdateProperties();
     UpdateSeries();
 }
        public SubPlotSettingsViewModel(SubPlotValue plot)
        {
            _value   = plot;
            _title   = plot.Title;
            _columns = plot.Columns;
            _rows    = plot.Rows;
            _save    = new RelayCommand(x =>
            {
                var window     = x as SubPlotSettingsWindow;
                _value.Title   = _title;
                _value.Rows    = _rows;
                _value.Columns = _columns;
                _value.UpdateLayout();

                if (window != null)
                {
                    window.Close();
                }
            });
        }