Skip to Main Content Skip to Search
Product Documentation

Deprecated Elements

Converting Elements

The Scalar Plot and Vector Plot elements are being replaced by the General Plot element that was introduced in R2008b. The General Plot element supports all MATLAB plot types as well as Simulink data.

Tests containing Scalar Plot or Vector Plot elements will not automatically load with those elements. You will be prompted to convert them to General Plot elements. For example, if you load a test containing a Scalar Plot element, the following dialog box opens:

If you click the Details button, the dialog box shows the specific element(s) that will be converted.

In this case, the test contained one or more Scalar Plot elements.

Choose the conversion option as follows:

For information about the General Plot element, see General Plot Element.

Scalar Plot Conversion Details

When you convert a Scalar Plot element to a General Plot element, these rules apply:

Scalar Plot Element ComponentWhat Is Loaded in the General Plot Element
Plot Type drop-down listA "plot" plot type is added to the axes.
X Axis drop-down listMapped to X Data Source of the newly added plot type.
Y Axis drop-down listMapped to Y Data Source of the newly added plot type.
Line Color drop-down listMapped to Line color of the newly added plot type.
Line Style drop-down listMapped to Line style of the newly added plot type.
Line Marker drop-down listMapped to Line marker of the newly added plot type.
Maximum Number of Points to Display at Once optionThis parameter is not converted and is ignored.
Note that every point in the plot is retained. There is no limit to the number of points.

This figure shows an example of a Scalar Plot element (left) converted to a General Plot element (right).

Vector Plot Conversion Details

When you convert a Vector Plot element to a General Plot element, these rules apply:

Vector Plot Element ComponentWhat Is Loaded in the General Plot Element
Plot Type selectorA "plot" plot type is added to the axes.
X Axis drop-down listMapped to X Data Source of newly added plot type. If the selection was "none" it is mapped to "<Auto>".
Y Axis drop-down listMapped to Y Data Source of the newly added plot type.
Line Color drop-down listMapped to Line color of the newly added plot type.
Line Style drop-down listMapped to Line style of the newly added plot type.
Line Marker drop-down listMapped to Line marker of the newly added plot type.
Subplot Dimensions areaThis is not converted and is ignored.
Clear axes between iterations optionIf selected, on the Options tab, the Clear the figure of any previous iteration's data option becomes selected. If cleared, the Keep any existing data on the figure check box becomes selected.

This figure shows an example of a Vector Plot element (left) converted to a General Plot element (right).

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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