How to display multiple Robotics Occupancy Grid maps in a single window?
Show older comments
I would like to display multiple Occupancy grid maps in a single window. I know how to display multiple figures in a single figure by using a subplot function. However, it did not help me in this situation.
Answers (1)
Cam Salzberger
on 27 Sep 2018
Hello Mehmet,
You can use the "Parent" name-value pair to specify which axes to plot on. Each subplot in MATLAB is a separate axes object, and you can get the handle to the axes as a return object from subplot.
ax1 = subplot(1, 2, 1);
show(map1, "Parent", ax1)
ax2 = subplot(1, 2, 2);
show(map2, "Parent", ax2)
-Cam
Categories
Find more on Mapping and Localization in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!