Clear plotter data from theater plot
clearPlotterData(tp)
example
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.
tp
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');
Use findPlotter to locate the plotter by its display name.
findPlotter
radarPlotter = findPlotter(tp,'DisplayName','Radar Detections');
Plot three detections.
plotDetection(radarPlotter, [30, 5, 1; 30, -10, 2; 30, 15, 1]);
Clear data from the plot.
clearPlotterData(tp);
theaterPlot
Theater plot, specified as a theaterPlot object.
clearData | findPlotter | theaterPlot
clearData
You have a modified version of this example. Do you want to open this example with your edits?