Main Content

clearPlotterData

Clear data from bird’s-eye plot

Description

clearPlotterData(bep) clears all plotter data displayed in the specified bird’s-eye plot. Legend entries and coverage areas are not cleared from the plot.

To clear data from a specific plotter, use the clearData function.

example

Examples

collapse all

Create a bird's-eye plot with an x-axis range of 0 to 90 meters and a y-axis range from –35 to 35 meters. Configure the plot to include a radar coverage area plotter and a detection plotter. Set the display names of these plotters.

bep = birdsEyePlot('XLim',[0 90],'YLim',[-35 35]);
coverageAreaPlotter(bep,'DisplayName','Radar coverage area');
detectionPlotter(bep,'DisplayName','Radar detections');

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains 2 objects of type patch, line. One or more of the lines displays its values using only markers These objects represent Radar coverage area, Radar detections.

Use findPlotter to locate the plotters by their display names.

caPlotter = findPlotter(bep,'DisplayName','Radar coverage area');
radarPlotter = findPlotter(bep,'DisplayName','Radar detections');

Plot the coverage area and detected objects.

plotCoverageArea(caPlotter,[1 0],30,0,35);
plotDetection(radarPlotter,[30 5; 30 -10; 30 15]);

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains 2 objects of type patch, line. One or more of the lines displays its values using only markers These objects represent Radar coverage area, Radar detections.

Clear data from the plot.

clearPlotterData(bep);

Figure contains an axes object. The axes object with xlabel X (m), ylabel Y (m) contains 2 objects of type patch, line. One or more of the lines displays its values using only markers These objects represent Radar coverage area, Radar detections.

Input Arguments

collapse all

Bird’s-eye plot, specified as a birdsEyePlot object.

Version History

Introduced in R2017a

See Also

Functions