| Stateflow User's Guide | ![]() |
Zooming a Diagram
You can magnify or shrink a diagram, using the following zoom controls:
Using the Zoom Factor Selector
The Zoom Factor Selector allows you to specify the zoom factor by
You can achieve the same effect by choosing Fit to View from the right-click context menu or by pressing the F key to apply the maximum zoom that includes all selected objects. Press the space bar to fit all objects to the view.
Dragging the mouse upward increases the zoom factor. Dragging the mouse downward decreases the zoom factor. Alternatively, right-clicking and dragging on the percentage value resizes while you are dragging.
Zooming with Shortcut Keys
The following is a summary of the shortcut keys you can use to perform some of the zooming operations described above:
| Key |
Zoom Operation |
| F |
Highlight (select) an object and press the F key to fit it to view. |
| space bar |
Set to full view of diagram. |
| R or + |
Increase zoom factor. |
| V or - |
Decrease zoom factor. |
Moving in Zoomed Diagrams with Shortcut Keys
You can also use number keys to move in zoomed diagrams according to their layout in the number keypad:
You can enter numbers for moving from the number keys above the alphabetic keys at any time or from the number keypad if NumLock is engaged for the keyboard. The 5 key fits the currently selected object to full view. If no object is selected, the entire diagram is fit to view.
| Editing Object Labels | Undoing and Redoing Editor Operations | ![]() |
© 1994-2005 The MathWorks, Inc.