remove space between subplots

  • Follow


Hi,

i have a figure consisting of 4 subplots which looks like 

h(1) = subplot(4,1,1); plot(sdate,xx);

h(2) = subplot(4,1,2); plot(sdate,yy)

h(3) = ...

h(4) = ...

how can I restrict the space between the subplots (to a minimum)?

I know this must work with the position order, but which concrete values are needed to restrict the space for all subplots?

another question related with it: 

removing the space means that I won't need the time axis label (sdate...) with the upper 3 subplots. Is there a possibility to remove the label without removing the grid in the figure? 

(it would be removed setting set(gca,'xtick',[]), which removes the vertical lines of the time axis)

Thank you very much!

Foehner
0
Reply foehner 5/10/2010 5:53:08 AM

On 10 Mai, 11:53, foehner <mehla...@nurfuerspam.de> wrote:
> Hi,
>
> i have a figure consisting of 4 subplots which looks like
>
> h(1) = subplot(4,1,1); plot(sdate,xx);
>
> h(2) = subplot(4,1,2); plot(sdate,yy)
>
> h(3) = ...
>
> h(4) = ...
>
> how can I restrict the space between the subplots (to a minimum)?
>
> I know this must work with the position order, but which concrete values are needed to restrict the space for all subplots?

You need to work with the position property of the axis.
Unfortunately, you need to find the specific numbers to
insert, yourself. (Or at least you did with R2006a, which
is the version I have to play with.)

Finding those numbers is a serious mess.

Rune
0
Reply Rune 5/10/2010 10:33:16 AM


1 Replies
788 Views

(page loaded in 0.195 seconds)

Similiar Articles:













7/22/2012 11:45:48 PM


Reply: