Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8141719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:36:19+00:00 2026-06-06T12:36:19+00:00

I am programming a basic GUI in MATLAB that utilizes the mapping toolbox. The

  • 0

I am programming a basic GUI in MATLAB that utilizes the mapping toolbox. The GUI will display a grayscale image and then plot discrete points over the data, all of this over the necessary map projection. It is important that I plot onto map axes (those created by the axesm command) rather than the vanilla cartesian space. I have no problem doing all this from the command line, but I cannot find a way to implement a GUI version and its driving me nuts.

The problem is that I need to specify the map axes as being the child of the parent figure. The normal axes has a property that can be set, doing something like:

axesHandle = axes('Parent', parentHandle, ...);

or

set(axesHandle, 'Parent', parentHandle);

However, there is no equivalent parent property for the map axes created by the axesm function, so I have no way to manipulate the axes within the figure. How can I do this?


Update: If I create a plot within the map axes in an empty figure, get(figureHandle, ‘Children’) returns the handle of the axesm object (thanks @slayton!), so the map axes object must be implicitly added to the children of the figure by MATLAB.

Should I be concerned that the map axes do not refer back to the parent figure, or should I just let it be? I wonder if this is a classic case of MATLAB forcing me to not comply with the standards the manual tells me to implement.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T12:36:21+00:00Added an answer on June 6, 2026 at 12:36 pm

    After much trial and error and reading of documentation, I have found that there is no way to explicitly specify the parent of the map axes. Instead, they are implicitly added on top of the current axes. In the instance that no axes exist in the current figure, calling axesm creates an axes object and then places the axesm object inside. When you take this route, you have to grab the axes object handle by calling gca:

    mapAxesHandle = axesm(...);
    axesHandle = gca(...);
    

    This makes it frustrating to use the mapping toolbox when writing a GUI from scratch, but that’s the way Mathworks makes it happen. Thanks to @slayton for useful info. I’d upvote but my reputation is <15 🙁

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In many programming languages there is the basic equals operator which will see if
This algorithm is so advanced for my basic programming skills that I just don't
The last GUI programming I have done was with Visual Basic, which included objects
I started off programming in Basic on the ZX81 , then BASICA , GW-BASIC
Pretty basic programming question, I know PHP have a function for it, but does
so I'm making some basic programming language (just for exercise). I've made simple grammar
im doing some basic socket programming in python. But im having some trouble figuring
I've got another question regarding to basic Android programming: How can I access the
I'm still working my way through some pretty basic Actionscript programming (in Flex), and
I have some knowledge about Human computer interaction and some basic knowledge programming scripts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.