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

  • SEARCH
  • Home
  • 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 8846463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:59:30+00:00 2026-06-14T11:59:30+00:00

This should be a problem with a trivial solution, but still I wasn’t able

  • 0

This should be a problem with a trivial solution, but still I wasn’t able to find one.

Say that I have 2 matlab figures fig1.fig, fig2.fig which I want to load and show in the same plotting window.

What should I do?

I mean, I am pretty sure that I can accomplish the task using some low(er) level graphic command which extracts contents from one image and put them in the second one, nonetheless I cannot believe that there is not any high level function (load fig2 on top of fig1) that does this…Comparing 2 plots (unfortunately already saved) is a very common task, I’d say.

  • 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-14T11:59:31+00:00Added an answer on June 14, 2026 at 11:59 am

    Its not clear if you want to extract data from the figures and compare the data, or if you want to combine the plots from two figures into a single figure.

    Here is how you combine two figures into one (if thats what you want to do)..

    First load the figures:

    fig1 = open('FigureFile1.fig');
    fig2 = open('FigureFile2.fig');
    

    Get the axes objects from the figures

    ax1 = get(fig1, 'Children');
    ax2 = get(fig2, 'Children');
    

    Now copy the hangle graphics objects from ax2 to ax1. The loop isn’t neccesary if your figures only have a single axes

    for i = 1 : numel(ax2) 
       ax2Children = get(ax2(i),'Children');
       copyobj(ax2Children, ax1(i));
    end
    

    Note This example assumes that your figures have the same nubmer of axes and that you want to copy objects from the first axes in the second figure to the first axes on the first figure. Its up to you to figure out the proper indexing if the axes indices aren’t lined up.

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

Sidebar

Related Questions

This is a very trivial problem but I can't seem to find a way
I feel like this should be trivial, but I've struggled to find anything useful
It seems trivial enough but I can't find a valid answer to this problem.
This should be an easy problem but... I need to format a currency for
I have a strange problem. I have this method, which should generate a Date
I've been researching this problem, but I can't find what I need. It shouldn't
This should be a simple one: I have an observableArray object called To in
This should be a no brainer but I have a small mystery with the
This should be simple, but I'm getting confused. I have a parent/child tables -
This is a problem I have encountered again and again in C#, but haven't

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.