Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to alter the size of subplots ?

2,695 views
Skip to first unread message

Stanley Jose

unread,
Oct 31, 2008, 2:56:03 PM10/31/08
to
I have a data matrix thats 16x16x2000 in dimension to be plotted on a single figure window. I therefore have to use 256 subplots. The result of which is that the signal changes in each subplot is lost(all i get is straight lines in each subplot which is not the case when each of them is plotted on separate windows) which is understandable. Is there a way to utilise the dead space between subplots in order to increase the size of each subplot window. I have turned the axis off but this doesnt seem to expand the subplots.
Hoping to get some help.

Sergey

unread,
Oct 31, 2008, 3:17:01 PM10/31/08
to
"Stanley Jose" <dane...@yahoo.com> wrote in message <gefkc3$n1j$1...@fred.mathworks.com>...

> I have a data matrix thats 16x16x2000 in dimension to be plotted on a single figure window. I therefore have to use 256 subplots. The result of which is that the signal changes in each subplot is lost(all i get is straight lines in each subplot which is not the case when each of them is plotted on separate windows) which is understandable. Is there a way to utilise the dead space between subplots in order to increase the size of each subplot window. I have turned the axis off but this doesnt seem to expand the subplots.
> Hoping to get some help.

>> figure;
>> h=subplot(2,2,1);
>> ax=get(h,'Position');
>> ax(4)=ax(4)+0.1; %or wathever
>> set(h,'Position',ax);

vedenev

unread,
Nov 1, 2008, 12:35:59 PM11/1/08
to
So you used subplot function. It rerurn handle to axes:
h=subplot(...);
then you can change position (and size) of axes:
set(h,'position',[xmin ymin xlenght ylength]);

------------------------------------
Maxim Vedenev, Matlab freelancer
http://simulations.narod.ru/


0 new messages