Main Content

clearPlotterData

Clear plotter data from theater plot

Since R2021a

Description

clearPlotterData(tp) clears data shown in the plot from all the plotters used in the theater plot, tp. Legend entries and coverage areas are not cleared from the plot.

example

Examples

collapse all

Create a theater plot and a detection plotter.

tp = theaterPlot('XLim',[0, 90],'YLim',[-35, 35],'ZLim',[0, 10]);
detectionPlotter(tp,'DisplayName','Radar Detections');

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains a line object which displays its values using only markers. This object represents Radar Detections.

Use findPlotter to locate the plotter by its display name.

radarPlotter = findPlotter(tp,'DisplayName','Radar Detections');

Plot three detections.

plotDetection(radarPlotter, [30, 5, 1; 30, -10, 2; 30, 15, 1]);

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains a line object which displays its values using only markers. This object represents Radar Detections.

Clear data from the plot.

clearPlotterData(tp);

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains a line object which displays its values using only markers. This object represents Radar Detections.

Input Arguments

collapse all

Theater plot, specified as a theaterPlot object.

Version History

Introduced in R2021a