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 Commento

Jan
Jan il 19 Feb 2018
Modificato: Jan il 19 Feb 2018
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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Environment and Settings in Centro assistenza e File Exchange

Richiesto:

il 19 Feb 2018

Modificato:

Jan
il 19 Feb 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by