Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
image, figure problem?!

Subject: image, figure problem?!

From: Mo

Date: 17 Jun, 2010 15:50:19

Message: 1 of 3

hi everyone,

i was woundering how to place two images in the same figure window next to each other. But the problem is that i can't use the subplot built in function because thats not what i'm looking for, i've tried the set(gca, 'position', [num1 num2 num3 num4]) but it only displays one image and won't work on the other...any advice


thanks in advance....

Subject: image, figure problem?!

From: Rob Campbell

Date: 17 Jun, 2010 16:04:04

Message: 2 of 3


> thanks in advance....>>
Example:
clf
axes('position',[0.05,0.05,0.25,0.25]),box
axes('position',[0.35,0.35,0.25,0.25]),box
axes('position',[0.65,0.65,0.25,0.25]),box

Subject: image, figure problem?!

From: Geoff Dutton

Date: 17 Jun, 2010 16:31:11

Message: 3 of 3

Or maybe this:
hf = figure;

ha1 = axes('Position',[.1 .1 .4 .3]);

load clown

imagesc(X)

colormap(map)

ha2 = axes('Position',[.5 .1 .4 .3]);

imagesc(X)


set(ha1,'XTickLabel',[],'Xtick',[],...

'YTickLabel',[],'YTick',[]);

set(ha2,'XTickLabel',[],'Xtick',[],...

'YTickLabel',[],'YTick',[]);


"Rob Campbell" <matlab@robertREMOVEcampbell.removethis.co.uk> wrote in
message news:hvdh1k$fdk$1@fred.mathworks.com...
>
>> thanks in advance....>>
> Example:
> clf
> axes('position',[0.05,0.05,0.25,0.25]),box
> axes('position',[0.35,0.35,0.25,0.25]),box
> axes('position',[0.65,0.65,0.25,0.25]),box
>

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us