Export a plot with predefined margins
조회 수: 16(최근 30일)
표시 이전 댓글
I'm using the below command to export my plot into a jpeg file:
% h is the handle for the figure
% File_W is my jpeg file name
exportgraphics(h, File_W, 'Resolution', 600);
It works well except one issue. The system will automatically crop the figure to the smallest possible without losing any information. However, that's not what I want.
Is there a way I could add a predefined margin/gap, e.g., 20 pixels to the top, bottom, left and right?
Many thanks.
댓글 수: 0
채택된 답변
추가 답변(0개)
참고 항목
범주
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!