| Contents | Index |
| On this page… |
|---|
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.
Note You can no longer create new Scalar Plot or Vector Plot elements. They no longer appear in the Insert menu or the New Element button in the SystemTest desktop. |
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:
Yes — Your Scalar Plot and/or Vector Plot elements are converted to General Plot elements. The test is not saved until you explicitly do so.
See the next two sections for conversion details.
No — Your Scalar Plot and/or Vector Plot elements are not converted to General Plot elements. The test loads with the old elements. You can save the test with the old elements. However, in a future release, you will not be able to load the test until you convert the elements.
Cancel — The test is not loaded.
For information about the General Plot element, see General Plot Element.
When you convert a Scalar Plot element to a General Plot element, these rules apply:
Each Scalar Plot element maps one to one to a new General Plot element with the same name.
Each General Plot element is created with default values.
For each row in the Lines to Plot table in the Scalar Plot element, these actions occur in the same order as the rows appear in the table.
| Scalar Plot Element Component | What Is Loaded in the General Plot Element |
|---|---|
| Plot Type drop-down list | A "plot" plot type is added to the axes. |
| X Axis drop-down list | Mapped to X Data Source of the newly added plot type. |
| Y Axis drop-down list | Mapped to Y Data Source of the newly added plot type. |
| Line Color drop-down list | Mapped to Line color of the newly added plot type. |
| Line Style drop-down list | Mapped to Line style of the newly added plot type. |
| Line Marker drop-down list | Mapped to Line marker of the newly added plot type. |
| Maximum Number of Points to Display at Once option | This 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).

When you convert a Vector Plot element to a General Plot element, these rules apply:
Each Vector Plot element maps one to one to a new General Plot element with the same name.
Each General Plot element is created with default values.
For each row in the Lines to Plot table in the Vector Plot element, these actions occur in the same order as the rows appear in the table.
| Vector Plot Element Component | What Is Loaded in the General Plot Element |
|---|---|
| Plot Type selector | A "plot" plot type is added to the axes. |
| X Axis drop-down list | Mapped to X Data Source of newly added plot type. If the selection was "none" it is mapped to "<Auto>". |
| Y Axis drop-down list | Mapped to Y Data Source of the newly added plot type. |
| Line Color drop-down list | Mapped to Line color of the newly added plot type. |
| Line Style drop-down list | Mapped to Line style of the newly added plot type. |
| Line Marker drop-down list | Mapped to Line marker of the newly added plot type. |
| Subplot Dimensions area | This is not converted and is ignored. |
| Clear axes between iterations option | If 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).

![]() | Basic Elements | Using the Simulink Element | ![]() |

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 |