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 8210989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:16:23+00:00 2026-06-07T10:16:23+00:00

I have an image I overlay with a patch and I want to be

  • 0

I have an image I overlay with a patch and I want to be able to display multiple images on the same figure all with different over-layed patches. I tried using the subplot command but it did not work. I defined my axes and parent figure below.

hFig = figure;
hAx = axes('Parent',hFig);
hAx2 = axes('Parent',hFig);

fh = figure('units','pixels',...
          'position',[300 300 440 500],...
          'menubar','none',...
          'name','SliderTool',...
          'numbertitle','off',...
          'resize','off');


subplot(1,2,1) imshow(image1,'Parent','hAx');
patch(....,'parent', 'hAx');
subplot(1,2,2) imshow(image2,'Parent','hAx2');
patch(....,'parent', 'hAx2');

This is the basic idea for what I want to do but for some reason I cannot get it to work. Am I using the handles incorrectly?

  • 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-07T10:16:26+00:00Added an answer on June 7, 2026 at 10:16 am

    Are you trying to do something like this:

    image1 = imread('street1.jpg');
    image2 = imread('street2.jpg');
    
    ha1 = subplot(1,2,1) ;
    imshow(image1);    
    X = get(ha1,'Xlim')/2;
    Y = get(ha1,'Ylim')/2;    
    patch(X([1 2 2 1]),Y([1 1 2 2]),'m','FaceAlpha',0.5,'parent', ha1 );
    
    ha2 = subplot(1,2,2) ;
    imshow(image2);
    X = get(ha2,'Xlim')/2;
    Y = get(ha2,'Ylim')/2;    
    patch(X([1 2 2 1]),Y([1 1 2 2]),'b','FaceAlpha',0.3,'parent', ha2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok so I have a Background background-image: url('images/body.png'); now I want to overlay a
I have a tiling background image, but I want to overlay another tiling image
I have two overlay images that I want show in camera view depending on
I am trying to display the camera preview with an image overlay and have
I have a small (100x80) overlay image which will be placed at x=40, y=50
I have image Array with two images out of that first image its showing
I have image and txt file of same size say 200 KB. Now i
I have image A and image B. They are located in the different places
I have an image that the user can zoom/scroll. I want to draw some
Here's my dilemma: I have to RGBA RAW images: a master image (the first)

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.