Skip to Main Content Skip to Search
Product Documentation

Exploring and Customizing Plots

Displaying Fit and Residual Plots

Within each fit figure, you can display up to three plots simultaneously to examine the fit. Use the toolbar or View menu to select the type of plot to display:

The next example shows a main plot with a curve fit and prediction bounds, and the residuals plot.

When you select Tools > Prediction Bounds, two additional curves (or surfaces) are plotted to show the prediction bounds on both sides of your model fit.

Choose which bounds to display: None, 90%, 95%, 99%, or Custom. The custom option opens a dialog box where you can enter the required confidence level.

See also Customizing the Fit Display.

Residuals Plot

On the residuals plot, you can view the errors between your fit and your data, and you can remove outliers. See Removing Outliers. This example shows a residuals plot with some excluded outliers.

Viewing Surface Plots and Contour Plots

If you fit a surface, then the main plot shows your surface fit. Click-and-drag rotation or Rotate 3D is the default mouse mode for surface plots in the Curve Fitting Tool. Rotate mode in the Curve Fitting Tool is the same as Rotate 3D in MATLAB figures. You can change the mouse mode for manipulating plots just as for curve plots. See Using Zoom, Pan, Data Cursor, and Outlier Exclusion.

If you turn on a mouse mode for zoom, pan, data cursor or exlude outliers, turn the mode off again to return to rotate mode. For example, click the Zoom in toolbar button a second time to clear it and return to rotate mode.

If you have a surface fit, use the contour plot to examine a contour map of your surface. Contour plots are not available for curve fits. On a surface fit, a contour plot makes it easier to see points that have the same height. An example follows.

For polynomial and custom fits, you also can use the Tools menu to display prediction bounds. When you display prediction bounds, two additional surfaces are plotted to show the prediction bounds on both sides of your model fit. The previous example shows prediction bounds. You can see three surfaces on the plot. The top and bottom surfaces show the prediction bounds at the specified confidence level on either side of your model fit surface.

You can also switch your surface plot to a 2-D plot if desired. Your plot cursor must be in rotate mode. Clear any other mouse mode if necessary. Then, right-click the plot to select X-Y, X-Z, or Y-Z view, or to select Rotate Options. All these context menu options are standard MATLAB 3-D plot tools. See Rotate 3D — Interactive Rotation of 3-D Views in the MATLAB Graphics documentation.

Using Zoom, Pan, Data Cursor, and Outlier Exclusion

You can change mouse mode for manipulating plots. Use the toolbar or Tools menu to switch to Zoom, Pan, Data Cursor, or Exclude Outliers modes.

The Curve Fitting Tool remembers your selected mouse mode in each fit figure within a session.

Use the toolbar or Tools menu to toggle mouse mode in your plots:

Customizing the Fit Display

To customize your plot display, use the toolbar, Tools menu, or the View menu. See also Interactive Fit Comparison.

Tools Menu and Toolbar

View Menu and Toolbar

Use the View controls to customize the display to show or hide the plots, fit settings, results and table of fits.

See also Displaying Multiple Fits Simultaneously.

  


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