All graphics object properties have values built into MATLAB®. These values are called factory-defined values. Any property for which you do not specify a value uses the predefined value.
You can also define your own default values. MATLAB uses your default value unless you specify a value for the property when you create the object.
MATLAB searches for a default value beginning with the current object and continuing through the object's ancestors until it finds a user-defined default value or until it reaches the factory-defined value. Therefore, a search for property values is always satisfied.
MATLAB determines the value to use for a given property according to this sequence of steps:
Property default value specified as argument to the plotting function
Property default value defined by axes (defaults can be cleared by plotting functions)
Property default value defined by figure
Property default value defined by root
If not default is defined, use factory default value
Setting default values affects only those objects created after you set the default. Existing graphics objects are not affected.