Merge two separate figures into one

조회 수: 1(최근 30일)
Roger Breton
Roger Breton 2022년 2월 4일
댓글: Simon Chan 2022년 2월 5일
In the attached code, I use two separate figure windows.
But how could I bring them under "one" figure?
I guess I have to use subplot() but I'm not sure how to go about it....
Any help is appreciated. This is how my application works : I open up an image in one window and show its projected colors onto a CIE ab diagram. When the user clicks on the image, it draws a circle on the second window. I have not found how to delete the freshly drawn circles between each clicks of the mouse (or do I have to worry about that at all?)
  댓글 수: 4
Simon Chan
Simon Chan 2022년 2월 5일
As mentioned by others, there are different ways to achieve the same target.
The attached modified code uses 2 uipanels on one figure.
Noticed that I didn't perform comprehesive tesing on it and some of the items may have positions different from yours.
You may modify again according to your needs.

댓글을 달려면 로그인하십시오.

답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by