Grootmanager: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
(Created page with "===Purpose=== Manage and update MATLAB graphics root object properties. ===Synopsis=== : grootmanager(cmd,varargin) : grootmanager(cmd,propName,propValue) ===Description==...")
 
No edit summary
Line 13: Line 13:


When calling 'updateset' for the first time, grootmanager will create a default set name "Groot Set One" and add the current defaults returned by get(groot,'default').
When calling 'updateset' for the first time, grootmanager will create a default set name "Groot Set One" and add the current defaults returned by get(groot,'default').
NOTE: MATLAB and PLS_Toolbox will add some properties to the default properties. These can be ignored and may or may not end up in a "set" that grootmanager creates. Properties that ofte get set by MATLAB include: defaultFigurePosition, defaultFigurePaperPositionMode, defaultFigureVisible, defaultFigureToolBar, and defaultFigureMenuBar.


====Inputs====
====Inputs====


* '''cmd''' = Command for grootmanager.
* '''cmd''' = Command for grootmanager.
* '''propName''' = Property name.
** set - Set property value and add it to the current set.
* '''propValue''' = Property value.
** get - Get a property value.
 
** updateset - Set current set to get(groot,'default'). If output assigned then property structure is returned.
 
** changeset - Change set being used (update all defaults).
====Outputs====
** addset - Add a new property set.
 
** removeset - Remove set and reset defaults.
 
** getcurrentset - Get current property set struct.
 
** getparent - Get main parent structure with all property sets.
** setparent - Set main parent structure with all property sets.
** listdefault - List current property defaults that have been set.
** listfactory - List all properties with default values.
** listobjects - List ojbects that have properties that can be set.
** listobject - List properties for given object.
** search - Look for a term in all properties and return those that include the term.
** startup - Add current set to current root properties.
** factoryreset - Remove all default properties.
** clearall - Remove all current defaults (factoryreset) and remove saved preferences rmpref('GRootManagerProperties').


* '''propName''' = Property name if needed.
* '''propValue''' = Property value if needed.





Revision as of 12:28, 16 August 2022

Purpose

Manage and update MATLAB graphics root object properties.

Synopsis

grootmanager(cmd,varargin)
grootmanager(cmd,propName,propValue)

Description

Properties are saved in "property sets" in a single structure as a MATLAB preference. The current set is in the .currentset field. Changing the current set will update groot defaults to the new set.

When calling 'updateset' for the first time, grootmanager will create a default set name "Groot Set One" and add the current defaults returned by get(groot,'default').

NOTE: MATLAB and PLS_Toolbox will add some properties to the default properties. These can be ignored and may or may not end up in a "set" that grootmanager creates. Properties that ofte get set by MATLAB include: defaultFigurePosition, defaultFigurePaperPositionMode, defaultFigureVisible, defaultFigureToolBar, and defaultFigureMenuBar.

Inputs

  • cmd = Command for grootmanager.
    • set - Set property value and add it to the current set.
    • get - Get a property value.
    • updateset - Set current set to get(groot,'default'). If output assigned then property structure is returned.
    • changeset - Change set being used (update all defaults).
    • addset - Add a new property set.
    • removeset - Remove set and reset defaults.
    • getcurrentset - Get current property set struct.
    • getparent - Get main parent structure with all property sets.
    • setparent - Set main parent structure with all property sets.
    • listdefault - List current property defaults that have been set.
    • listfactory - List all properties with default values.
    • listobjects - List ojbects that have properties that can be set.
    • listobject - List properties for given object.
    • search - Look for a term in all properties and return those that include the term.
    • startup - Add current set to current root properties.
    • factoryreset - Remove all default properties.
    • clearall - Remove all current defaults (factoryreset) and remove saved preferences rmpref('GRootManagerProperties').
  • propName = Property name if needed.
  • propValue = Property value if needed.


Examples

Scale a matrix a that has two blocks augmented together:


See Also