Saving a figure bigger than screen size

49 visualizaciones (últimos 30 días)
Alon Wengierko
Alon Wengierko el 12 de Mayo de 2015
Comentada: Frederik Brasz el 20 de Jun. de 2017
I am trying to save a figure bigger than screen size, but it gets cut. How can I do it?
  1 comentario
Frederik Brasz
Frederik Brasz el 20 de Jun. de 2017
Found the answer in another thread.
Make the figure invisible before setting it's size with
set(fig, 'visible', 'off')

Iniciar sesión para comentar.

Respuestas (2)

Robbin van Hoek
Robbin van Hoek el 12 de Mayo de 2015
Editada: Robbin van Hoek el 12 de Mayo de 2015
have you tried setting the outerposition bigger than the screensize?
full screen:
figure('units','normalized','outerposition',[0 0 1 1]);
twice sceensize:
figure('units','normalized','outerposition',[0 0 2 2]);

Alon Wengierko
Alon Wengierko el 12 de Mayo de 2015
Editada: Alon Wengierko el 12 de Mayo de 2015
I tried:
function printpdf(h,outfilename)
set(h, 'PaperUnits','centimeters');
set(h, 'Units','centimeters');
pos=get(h,'Position');
set(h, 'PaperSize', [pos(3) pos(4)]);
set(h, 'PaperPositionMode', 'manual');
set(h, 'PaperPosition',[0 0 pos(3) pos(4)]);
print('-dpdf',outfilename);
I have made an script, and sometimes it plot it with the desired size and sometimes it is cut.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by