how to increase figure window height?
8 views (last 30 days)
Show older comments
Hello everyone,
I am trying to make a subplot array of (5,2,1:10)in five rows and two columns that I exactly need. While making the plot I found all of my subplots are squeezed but still I have enough space at the top as well as at the bottom. When I take the print of pdf it seems like the figure used only half of the page in the middle. Does anybody have any idea how can I increase the height of the figure window as well as the height of each subplot. I used the following the command for each subplot only changing the position.
subplot(5,2,1);
plot(x1,TGMdaily(:,1),'ro-','MarkerSize',2)
set(gca,'xlim',[0 24],'xtick',[0:2:24],...
'xticklabel',[])
ylabel('TGM (ng/m^3)','FontSize',10);
Thank you very much in advance.
0 Comments
Accepted Answer
Azzi Abdelmalek
on 10 Sep 2012
Edited: Azzi Abdelmalek
on 10 Sep 2012
plot(t,y)
%the max you can do is
set(gca,'position',[0 0 1 1])
More Answers (2)
NOUFAL THANGAL R
on 11 Sep 2012
Edited: NOUFAL THANGAL R
on 11 Sep 2012
I suggest plottools
using this tool, you can interactively design your plots. You can further create the M-code from there itself. And use this code in your main program.
It's easy
0 Comments
NOUFAL THANGAL R
on 11 Sep 2012
Edited: NOUFAL THANGAL R
on 11 Sep 2012
The following is the function I generated using plottools :
function createfigure %CREATEFIGURE
% Auto-generated by MATLAB on 11-Sep-2012 12:00:47
% Create figure figure1 = figure;
% Create axes axes1 = axes('Parent',figure1,... 'Position',[0.0599369085173502 0.826666666666667 0.435331230283912 0.140000000000002]); box(axes1,'on');
% Create axes axes2 = axes('Parent',figure1,... 'Position',[0.534700315457413 0.822344632768362 0.400630914826498 0.144322033898305]); box(axes2,'on');
% Create axes axes3 = axes('Parent',figure1,... 'Position',[0.0646687697160883 0.646666666666667 0.433753943217665 0.135663841807911]); box(axes3,'on');
% Create axes axes4 = axes('Parent',figure1,... 'Position',[0.539432176656151 0.648008474576272 0.402208201892744 0.135324858757062]); box(axes4,'on');
% Create axes axes5 = axes('Parent',figure1,... 'Position',[0.0615141955835962 0.461666666666667 0.436908517350158 0.145]); box(axes5,'on');
% Create axes axes6 = axes('Parent',figure1,... 'Position',[0.536277602523659 0.463333333333333 0.408517350157729 0.141666666666667]); box(axes6,'on');
% Create axes axes7 = axes('Parent',figure1,... 'Position',[0.0662460567823344 0.265 0.432176656151419 0.148333333333333]); box(axes7,'on');
% Create axes axes8 = axes('Parent',figure1,... 'Position',[0.534700315457413 0.265 0.406940063091483 0.150324858757063]); box(axes8,'on');
% Create axes axes9 = axes('Parent',figure1,... 'Position',[0.0662460567823344 0.0666666666666667 0.438485804416404 0.142655367231639]); box(axes9,'on');
% Create axes axes10 = axes('Parent',figure1,... 'Position',[0.537854889589905 0.065 0.410094637223975 0.143333333333333]); box(axes10,'on');
0 Comments
See Also
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!