how to display a m_map figure on app designer

5 views (last 30 days)
m_map is a set of mapping tools written for Matlab, which based on plot, contour, contourf, etc.
I want to display a map drawn by m_map on app designer.
I have read https://ww2.mathworks.cn/matlabcentral/answers/669713-how-can-i-put-a-figure-in-app-designer?s_tid=srchtitle and I know I can use app.UIAxes for drawing, but this requires me to extensive modification of functions in m_map.
Is there a simpler way to put a Figure drawn by m_map on the app designer?

Accepted Answer

Adam Danz
Adam Danz on 6 Oct 2023
I haven't looked at the 3rd-party software but I'm guessing that its plotting functions do not offer an input argument to specify an axes handle.
By default, app figures have their handle visibility turned off. This prevents gca from accessing the app axes. Here's a guide on how to get around this problem.

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!