For Programmers: Free Programming Magazines  


Home > Archive > Matlab > August 2005 > Re: deviding x axis and plot different plots in pa









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: deviding x axis and plot different plots in pa
Jérôme

2005-08-31, 7:57 am

Hi,

I think you should take a look at SUBPLOT :

help subplot
<http://www.mathworks.com/access/hel...ef/subplot.html>

You should also use SUBPLOTSPACE from the File Exchange to reduce
spaces between adjacent subplots :

<http://www.mathworks.com/matlabcent...objectType=file>

You can also try to code by yourself :

figure

ax=axes('units','normalized', ...
'position',[.05 .2 .3 .6], ...
'xlim',[0 10000]);

bx=copyobj(ax,gcf);

set(bx,'position',[.35 .2 .3 .6]);

cx=copyobj(ax,gcf);

set(cx,'position',[.65 .2 .3 .6]);

axes(ax)
plot(10000*rand(1,1000),rand(1,1000),'r.');
axes(bx)
plot(10000*rand(1,1000),rand(1,1000),'g+
');
axes(cx)
plot(10000*rand(1,1000),rand(1,1000),'bp
');

set(findobj('type','axes'),'xscale','log
')

Jérôme
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com