Plotting multiple objects and maintaining page size
显示 更早的评论
I am plotting multiple graphs on a single page. I have defined the paper size in order to keep the format consistent when being run on a laptop or desktop. However when the output appears it very briefly appears correctly then defaults to my laptop screen size condensing and overlapping the output. I have tried changing various settings but see no change in the output.
%%START TO PLOT FIGURE
close all
set(0, 'DefaultFigureVisible', 'off')
figure1 = figure;
set(gcf, 'PaperPositionMode', 'manual')
set(gcf, 'PaperPosition',[0 0 0.5 0.5])
set(gcf, 'PaperType', 'B');
set(gcf,'PaperOrientation','landscape')
papersize = get(gcf, 'PaperSize');
scrn_size = [1 1 1680 1050];
set(gcf,'Position',scrn_size);
1 个评论
Do you want to control the output on a sheet of paper or a PDF when printing, or do you mean the display on the screen?
If you set the paper position and the paper type, I assume only the last setting is considered.
This will most likely fail:
scrn_size = [1 1 1680 1050];
set(gcf,'Position',scrn_size);
Evenm on a 1680x1050 monitor the task bar will occupy some space. In consequence the created figure is smaller.
You did not explain, which objects are overlapping. But this is the main point of the question, as far as I understand.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!