explore and customize plots -凯发k8网页登录

main content

explore and customize plots

displaying fit and residual plots

in the curve fitter app, within each fit figure, you can display up to three plots simultaneously to examine the fit. use the buttons in the visualization section of the curve fitter tab to select the type of plot to display.

  • click fit plot to show the curve or surface fit.

  • click residuals plot to show the errors between your fit and your data.

  • click contour plot to show a contour map of a surface fit (not available for curve fits).

this example shows two plots: a plot with a curve fit and prediction bounds and a residuals plot.

fit and residuals plots for a curve fit

when you select prediction bounds in the visualization section of the curve fitter tab, 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 remove outliers. this example shows a residuals plot with some excluded outliers.

residuals plot with excluded outliers in red

viewing surface plots and contour plots

if you fit a surface, then the fit plot shows your surface fit. click-and-drag rotation is the default mouse mode for surface plots in the curve fitter app. rotate mode in the curve fitter app is the same as using the rotate 3d button in the axes toolbar of 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.

tip

to return to rotate mode, turn off any other mouse mode.

if you turn on a mouse mode for zoom, pan, data cursor, or exclude outliers, turn the mode off again to return to rotate mode. for example, click the zoom in button on the axes toolbar 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.

contour, fit, and residuals plots for a polynomial surface fit

for polynomial and custom fits, you also can display prediction bounds. on the curve fitter tab, in the visualization section, select a value from the prediction bounds list. 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. your plot cursor must be in rotate mode. clear any other mouse mode, if necessary. then, right-click the plot to select go to x-y view, go to x-z view, go to y-z view, or rotate options. all these context menu options are standard matlab 3-d plot tools. for more information, see .

using zoom, pan, data cursor, and outlier exclusion

you can change mouse mode for manipulating plots. use the plot axes toolbar to switch to zoom in, zoom out, pan, data cursor, or exclude outliers modes. the curve fitter app remembers your selected mouse mode in each fit figure within a session.

use the axes toolbar to toggle mouse mode in your plots:

  • the zoom in, zoom out, pan, and data cursor buttons are similar to standard matlab axes toolbar options.

    on surfaces, turn all these modes off to return to rotation mode. for surface plots, rotation is the default mouse mode in the curve fitter app. see viewing surface plots and contour plots.

  • clicking the data cursor button enables data cursor mode, where you can click points to display data tips.

  • clicking the exclude outliers button enables exclude outliers mode, where you can click points to remove or include in your fit. see remove outliers.

customizing the fit display

to customize your plot display, use the plot axes toolbar, the options in the visualization section of the curve fitter tab, or the document actions arrow located to the far right of the fit figure tabs. see also .

axes toolbar

use the plot axes toolbar buttons to change the display of the plot legend and grid marks.

  • the legend button toggles the display of the legend on all plots in the currently selected fit tab.

  • the grid button toggles the display of the grid on all plots in the currently selected fit tab.

visualization section

use the options in the visualization section of the curve fitter tab to customize the display of plots and prediction bounds.

  • fit plot toggles the display of the fit plot in the currently selected fit figure. this button is disabled if the fit plot is the only displayed plot.

  • residuals plot toggles the display of the residuals plot in the currently selected fit tab. this button is disabled if the residuals plot is the only displayed plot.

  • contour plot toggles the display of the contour plot in the currently selected fit tab. this button is disabled if the contour plot is the only displayed plot.

  • the prediction bounds list lets you 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.

document actions arrow

to compare plots and see multiple fits simultaneously, you can drag and drop the fit figure tabs. alternatively, you can click the document actions arrow located to the far right of the fit figure tabs. for example, select the tile all option and specify the number and position of tiles you want to display.

tip

for more space to view and compare plots, as shown next, you can drag and drop the fit options, results, and table of fits panes.

side-by-side display of fit and residuals plots

see also .

print to matlab figures

in the curve fitter app, you can produce matlab figures from the results of curve fitting. on the curve fitter tab, in the export section, click export and select export to figure. the app creates a figure containing all plots for the current fit. you can then use the interactive plotting tools to edit and export the figures in different formats.

related topics

网站地图