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:
graph window size

Subject: graph window size

From: recep mansiz

Date: 2 Jul, 2009 08:07:01

Message: 1 of 4

Hi all!!

I want to plot a x-y graph that has a smaller size than matlab default output graph size.

How can I achieve this.

thanks in advance...

Subject: graph window size

From: recep mansiz

Date: 2 Jul, 2009 08:47:01

Message: 2 of 4

doesn't anybody have any idea ?? is there a function that matlab default plot window size can be changed inside??

Subject: graph window size

From: Sadik

Date: 2 Jul, 2009 09:40:03

Message: 3 of 4

Hi Recep,

After you make your plot, you say:

set(gcf,'Position',[a b c d])

where a b c and d are numbers which show respectively the (x,y) location of the upper left corner [by a and b] and the width and height of the window [by c and d]. In order to have an idea about what these four values should be, you could say:

get(gcf,'Position')

You can then play with these numbers until you get the desired plot.

Best.

"recep mansiz" <aalmoraa@hotmail.com> wrote in message <h2hs65$qct$1@fred.mathworks.com>...
> doesn't anybody have any idea ?? is there a function that matlab default plot window size can be changed inside??

Subject: graph window size

From: recep mansiz

Date: 2 Jul, 2009 10:01:02

Message: 4 of 4

thanks for your reply sadik
it works of course

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