Graphics and 3-D Visualization, MATLAB® Version 7 (R14)

If you are using the Help browser, view the Graphics new features video demo to see highlights of the new features.

This version introduces the following new features and changes:

Plotting Tools

If you are using the Help browser, watch the new Plotting Tools video demo for an overview of the major functionality.

The following list links to new or redesigned plotting tool features.

Related functions:

Code Generation

You can save a graph as an M-file that contains the code to regenerate the graph. See Generating an M-File to Recreate a Graph for more information.

Data Exploration Tools

The following list links to the documentation for the data exploration tools.

Annotation Features

The following list links to the documentation for annotation features and properties of the annotation objects.

See the annotation function for information on programmatic access to annotation objects.

See Annotation Objects for an overview of this type of graphics object.

Plot Objects

Plot Objects are composite graphics objects that simplify the modification of graphs that employ them. The following list links to reference pages for modified graphing functions and to property descriptions of the new plot objects.

See Plot Objects for an overview of this type of graphics object.

Functions That Use Plot Objects

Note that all of the above functions have a 'v6' optional argument that causes each function to return the core graphics objects that were created in previous releases. See the reference pages for more information.

Plot Objects

Refreshing Data Source Properties

The refreshdata function enables you to take advantage of the XDataSource, YDataSource, and ZDataSource plot objects properties to update graph data when workspace variables change values.

See Example — Specifying a Data Sourcein the MATLAB® Graphics documentation for more information.

Group Objects

Group objects enable you treat a number of objects as one, with respect to certain properties.

See Group Objects for an overview of this type of graphics object.

Group Object Functions

Linking Graphics Object Properties

You can link the corresponding properties of graphics objects so that changing any one object's properties makes the same change to all the linked objects.

See linkprop and linkaxes for more information.

New Behavior for Hold Command

The hold command has a new option all. This option holds the plot and the current line color and line style so that subsequent graphing commands do not reset the ColorOrder or LineStyleOrder property values to the beginning to the list.

Enhancements to findobj

The findobj function now supports logical operators and regular expressions. See the findobj reference page for more information.

New Ancestor Function Returns Object's Ancestry

The ancestor function enables you to determine an object's direct parent, as well as its complete ancestry. This is particularly useful when you want to determine whether an object is contained in a uipanel or hggroup, for example, and need the handle of the container object or the top-level figure.

New Axes Properties

You can control the behavior of an axes within a resized figure using the following new axes properties.

See Automatic Axes Resize for more information.

New Figure Properties

There are three new figure properties described below.

Figure KeyPressFcn Property

The figure KeyPressFcn property now supports an event structure that returns information about the key press event. See the KeyPressFcn description for more information.

DockControls and WindowStyle Properties

Figures now have a DockControls property that determines if the Desktop menu appears on the figure. Setting dockable to on causes the menu to be displayed, the default setting of off prevents the menu from being displayed. You can always dock and undock the figure by setting the figure WindowStyle property.

Note that, depending on your preference settings, the figure might first be grouped into a Document window, which can then be docked in the Desktop.

See Docking Figures in the Desktop for more information.

New Rootobject Property

The MonitorPosition property enables you to get the position (width, height, and location) of multiple monitors connected to your computer.

New Dialog for Exporting Figures

You can export MATLAB figures to a variety of standard file formats using the Export Setup dialog. To display the dialog, select Export Setup from the figure File menu.

Export Setup provides easy access to the graphics properties that affect exported figures. For example, it enables you to control the size of the figure, the font size and type, whether to use line styles or solid lines, and so on.

You can save your own export setting as an export style, or you can use predefined options optimized for Microsoft® PowerPoint® and Microsoft® Word.

The following picture shows the major components of the Export Setup dialog.

Compatibility Considerations

Plotting Tools Not Working on Macintosh® Platform

The plotting tools not supported on the Macintosh® platform. This means the Figure Palette, Plot Browser, and Property Editor do not work these platforms. To use the MATLAB 6 Property Editor, see the propedit command.

Using -nojvm Option Prevents Plotting Tools Use

If you use the -nojvm option when starting MATLAB, the plotting tools are not available.

MATLAB® 6 Version Property Editor

The MATLAB 6 Property Editor is being replaced by a new Property Editor, which is available in this release. However, you can still access the MATLAB 6 Property Editor by issuing the following command.

propedit(object_handle,'v6')

Without the v6 argument, propedit displays the new Property Editor. See the propedit function for more information. Note that the Property Editor might not work with all objects.

Cannot Dock Figures on Macintosh® Platform

You cannot dock figures in the Desktop, because MATLAB uses native figure windows on the Macintosh platform.

Not All Macintosh® System Fonts Are Available

MATLAB figures do not support the same fonts as native Macintosh applications. Use the uisetfont functions to see which fonts are available in MATLAB.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS