Azzera filtri
Azzera filtri

How to make the axis limits only adjust for some objects, without slowing down plotting?

1 visualizzazione (ultimi 30 giorni)
I have an application where I plot a road, a host vehicle and objects surrounding the host vehicle from a birdview perspective. The road is plotted once and the objects are updated periodically by setting the XData and YData properties.
Since the road can be very long but all objects are close to the host vehicle, I would like the axis limits to automatically adjust for the objects, but not for the road.
The only thing that worked so far has been to calculate the x and y range in which objects exist and call axis() with the new limits every time the objects are updated. Unfortunately this approach slows down my application significantly.
Is there another way?
I'm using Matlab R2013b.

Risposte (0)

Categorie

Scopri di più su Graphics Object Programming in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by