how to use saveas specify the size of plot when one save the plot

7 vues (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 3 Juil 2020
Commenté : alpedhuez le 3 Juil 2020
I want to save plot to fit to the size of slides. How can one use saveas (or another command) to save a plot in a 16:9 ratio (or size)>

Réponse acceptée

madhan ravi
madhan ravi le 3 Juil 2020
  1 commentaire
alpedhuez
alpedhuez le 3 Juil 2020
call the exportgraphics function and set the 'ContentType' name-value pair argument to 'vector'. For example, create a bar chart, and save the figure as a PDF file containing vector graphics. All embeddable fonts are included in the PDF.
bar([1 11 7 8 2 2 9 3 6])
f = gcf;
% Requires R2020a or later
exportgraphics(f,'barscalable.pdf','ContentType','vector')

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Printing and Saving 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