print a figure into PDF

Hi,
I want to print a matlab .fig into .pdf, but only the center part of the figure is shown on the .pdf file. Do you know how to solve this?
Thanks!

2 comentarios

Jan
Jan el 2 de Ag. de 2011
Please explain, which method you are using for printing: PRINT, the print-menu, saveas or a PDF printer driver?
Haozi
Haozi el 13 de Sept. de 2011
I used the print menu, then select PDF from the list. Thanks!

Iniciar sesión para comentar.

 Respuesta aceptada

Jan
Jan el 14 de Sept. de 2011

3 votos

I guess, that you have a fixed PaperPosition, which is outside the visible range. Try this:
figure('PaperPositionMode', 'auto');
plot(rand(10));
print(gcf, '-dpdf', 'test.pdf');
You can set the PaperPosition in the Print-GUI also.

Más respuestas (1)

Sreeram Mohan
Sreeram Mohan el 14 de Sept. de 2011

0 votos

Have u tried out the file submission here ?
Seems like there is a programmatic way of achieving this
Thanks, Sreeram

Categorías

Más información sobre Printing and Saving en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 1 de Ag. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by