Closing the Property Editor Once activated, the Property Editor remains on your screen until you explicitly dismiss it by clicking either the Cancel button or the oK button. The Cancel button dismisses the property Editor without applying any changes that may have been made to property values that havent been applied. The OK button dismisses the Property Editor dialog box and applies any changes that have been made to property values Editing Object Properties To edit the properties of an object 1 Start plot editing mode 2 Start the Property Editor by double-clicking on the object in the graph or using one of the other mechanisms The Property Editor displays the set of panels associated with the object you have selected 3 Click on the tab of the panel that contains the property you want to modify 4 Change the value of the property. For some properties, you must select a value from a menu of values. For other fields, you can either select a value or type a value directly into the field. Note If you place the cursor over a field, a data tip appears that displays the name of the property being edited and its current value 5 Click the apply button For example, if you double-click on a line object in a graph, the Property editor displays the set of tabbed panels specific to line objects: Data, Style, ar To change the style of a line from solid to dashed, click on the Style tab the style panel and click on the Line style menu. Select Dashed line fr l-17
Using the Property Editor 1-17 Closing the Property Editor Once activated, the Property Editor remains on your screen until you explicitly dismiss it by clicking either the Cancel button or the OK button. The Cancel button dismisses the Property Editor without applying any changes that may have been made to property values that haven’t been applied. The OK button dismisses the Property Editor dialog box and applies any changes that have been made to property values. Editing Object Properties To edit the properties of an object: 1 Start plot editing mode. 2 Start the Property Editor by double-clicking on the object in the graph or using one of the other mechanisms. The Property Editor displays the set of panels associated with the object you have selected. 3 Click on the tab of the panel that contains the property you want to modify. 4 Change the value of the property. For some properties, you must select a value from a menu of values. For other fields, you can either select a value or type a value directly into the field. Note If you place the cursor over a field, a data tip appears that displays the name of the property being edited and its current value. 5 Click the Apply button. For example, if you double-click on a line object in a graph, the Property Editor displays the set of tabbed panels specific to line objects: Data, Style, and Info. To change the style of a line from solid to dashed, click on the Style tab to view the style panel and click on the Line style menu. Select Dashed line from the list of styles
I Overview of MatlaB graphics 回x Edit Properties for: line 剩 Line style property Line Properties Line width: Solid line(5) Line color: Dotted line ( Dash-dot line( No line(none) Marker P 8ze:10 Edge color. inherited(auto) Custom color Face color: Editing Multiple Objects If you select multiple objects of the same type, the Property Editor displays the set of panels specific to that object type For example, if you select several lines in a graph, the Property Editor displays the panels associated with line objects If you change the value of a line property and apply your change it affects all the objects you have selected If you select multiple objects of different types, for example, a line and an axes the Property Editor displays only the Info panel, which provides access to properties that are common to all object types For information about navigating among multiple selections, see"Multiple Selections and the Navigation Bar"on page 1-20 Navigating Among Objects in a Grapl The navigation bar at the top of the Property editor, labeled Edit Properties ct being edited by its type(class)and tag, if the object tag property has a value. (a tag is a user-defined text string associated with an 1-18
1 Overview of MATLAB Graphics 1-18 Editing Multiple Objects If you select multiple objects of the same type, the Property Editor displays the set of panels specific to that object type. For example, if you select several lines in a graph, the Property Editor displays the panels associated with line objects. If you change the value of a line property and apply your change, it affects all the objects you have selected. If you select multiple objects of different types, for example, a line and an axes, the Property Editor displays only the Info panel, which provides access to properties that are common to all object types. For information about navigating among multiple selections, see “Multiple Selections and the Navigation Bar” on page 1-20. Navigating Among Objects in a Graph The navigation bar at the top of the Property Editor, labeled Edit Properties for, identifies the object being edited by its type (class) and tag, if the object’s tag property has a value. (A tag is a user-defined text string associated with an object.) Line style property selection
You can also use the navigation bar to select other objects, or groups of objects, in the graph that you want to edit. The following sections describe how to use the navigation bar ."Selecting Objects from the Navigation Bar"on page 1-19 ·“ Using the Navigation Bar To Search for Objects” on page1-20 ·“ Multiple selections and the Navigation Bar” on page1-20 electing objects from the Navigation Bar To edit one of the other objects in the graph: 1 Click on the navigation bar menu. The Property Editor displays a hierarchical list of all the objects in the current figure. (The Property Editor includes other figures that may be open in the list but does not include the child objects of these figures. Click here to display the navigation bar Navigation bar identifies object being PRoperty Editor-Line 二回x E计F回 Navigation bar menu lists all the objects in the current itiple line objects <no t Line style: so 2 Select the object you want to edit from this list. The Property Editor displays the set of panels associated with the type of object you have selected. See Identifying Objects in a graph"on page 1-20 for more information Note Only objects that have their Handlevisibility property set to On appear in the navigation bar hierarchical list. However, objects appear in the navigation bar even if their Visibility property is set to off. l-19
Using the Property Editor 1-19 You can also use the navigation bar to select other objects, or groups of objects, in the graph that you want to edit. The following sections describe how to use the navigation bar: • “Selecting Objects from the Navigation Bar” on page 1-19 • “Using the Navigation Bar To Search for Objects” on page 1-20 • “Multiple Selections and the Navigation Bar” on page 1-20 Selecting Objects from the Navigation Bar To edit one of the other objects in the graph: 1 Click on the navigation bar menu. The Property Editor displays a hierarchical list of all the objects in the current figure. (The Property Editor includes other figures that may be open in the list but does not include the child objects of these figures.) 2 Select the object you want to edit from this list. The Property Editor displays the set of panels associated with the type of object you have selected. See “Identifying Objects in a Graph” on page 1-20 for more information. Note Only objects that have their HandleVisibility property set to On appear in the navigation bar hierarchical list. However, objects appear in the navigation bar even if their Visibility property is set to Off. Navigation bar identifies object being Click here to display the navigation bar Navigation bar menu lists all the objects in the current figure
I Overview of MatlaB graphics Using the Navigation Bar To Search for Objects You can use the navigation bar to search for a particular object, or group of objects, in a figure by a tag, type(class), or handle + Or example, to edit every line in a figure, enter the text string line in the F avigation bar. The Property Editor displays the set of property panels ssociated with line objects and lists all the lines in the navigation bar. Individual line objects are identified by their tags, if present Multiple selections and the navigation Bar When you select multiple objects, the Property Editors navigation bar displays the objects ancestors and children if the objects share a common parent. The Property Editor displays all the children in a single, non-hierarchical list. If you select objects that do not have a common parent, the Property Editor navigation bar only displays the selected objects. For example, if you create a graph containing multiple line plots and you select several of the lines, the Property Editors navigation bar display looks like this E址mt gation bar lists Identifying Objects in a Grapl h n the hierarchical display of the navigation bar, the Property Editor lists all the objects in a graph by their type and tag, if the object has a tag contains numerous line objects, tags can help identify which line d in the navigation bar list represents which line in the graph To create a tag for a particular object in a graph 1 Double-click on the object in the graph. Plot editing mode must be enabled. 2 Click on the Info tab in the Property Editor 1-20
1 Overview of MATLAB Graphics 1-20 Using the Navigation Bar To Search for Objects You can use the navigation bar to search for a particular object, or group of objects, in a figure by a tag, type (class), or handle. For example, to edit every line in a figure, enter the text string line in the navigation bar. The Property Editor displays the set of property panels associated with line objects and lists all the lines in the navigation bar. Individual line objects are identified by their tags, if present. Multiple Selections and the Navigation Bar When you select multiple objects, the Property Editor’s navigation bar displays the objects’ ancestors and children if the objects share a common parent. The Property Editor displays all the children in a single, non-hierarchical list. If you select objects that do not have a common parent, the Property Editor navigation bar only displays the selected objects. For example, if you create a graph containing multiple line plots and you select several of the lines, the Property Editor’s navigation bar display looks like this. Identifying Objects in a Graph In the hierarchical display of the navigation bar, the Property Editor lists all the objects in a graph by their type and tag, if the object has a tag. If a graph contains numerous line objects, tags can help identify which line object listed in the navigation bar list represents which line in the graph. To create a tag for a particular object in a graph: 1 Double-click on the object in the graph. Plot editing mode must be enabled. 2 Click on the Info tab in the Property Editor. Navigation bar identifies objects being Navigation bar lists the selected objects and their common
3 Enter a text string in the Tag field that identifies the object in the graph 4 Click Apply The Property Editor immediately updates the navigation bar display with the nge To apply your changes, click the Apply button If you have checked the Immediate Apply box, your changes will appear automatically; you do not need to click on the Apply button. If you make changes to fields on a panel and then attempt to switch panels without applying your changes, the Property Editor displays a warning message, asking you if you want to apply your changes before moving If you click oK, you apply your changes and dismiss the property editor. Note During an editing session, keep the Property Editor open. Throughout the session, you can edit the properties of any object in your graph without restarting the Property Edito If you have changed the values of properties and decide not to apply the changes, click on the Revert button. The revert button resets all the properties to their values at the last apply To reset a property value change and close the Property Editor, click the Cancel button 1-21
Using the Property Editor 1-21 3 Enter a text string in the Tag field that identifies the object in the graph. 4 Click Apply. The Property Editor immediately updates the navigation bar display with the tag value. Applying Your Changes To apply your changes, click the Apply button. If you have checked the Immediate Apply box, your changes will appear automatically; you do not need to click on the Apply button. If you make changes to fields on a panel and then attempt to switch panels without applying your changes, the Property Editor displays a warning message, asking you if you want to apply your changes before moving. If you click OK, you apply your changes and dismiss the Property Editor. Note During an editing session, keep the Property Editor open. Throughout the session, you can edit the properties of any object in your graph without restarting the Property Editor. Canceling Changes If you have changed the values of properties and decide not to apply the changes, click on the Revert button. The Revert button resets all the properties to their values at the last Apply. To reset a property value change and close the Property Editor, click the Cancel button