Effacer les filtres
Effacer les filtres

print a figure into PDF

47 vues (au cours des 30 derniers jours)
Haozi
Haozi le 1 Août 2011
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 commentaires
Jan
Jan le 2 Août 2011
Please explain, which method you are using for printing: PRINT, the print-menu, saveas or a PDF printer driver?
Haozi
Haozi le 13 Sep 2011
I used the print menu, then select PDF from the list. Thanks!

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 14 Sep 2011
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.
  1 commentaire
Haozi
Haozi le 14 Sep 2011
Thanks, I'll try.

Connectez-vous pour commenter.

Plus de réponses (1)

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

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by