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

조회 수: 5 (최근 30일)
alpedhuez
alpedhuez 2020년 7월 3일
댓글: alpedhuez 2020년 7월 3일
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)>

채택된 답변

madhan ravi
madhan ravi 2020년 7월 3일
  댓글 수: 1
alpedhuez
alpedhuez 2020년 7월 3일
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')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by