Saving plot vs. contour figures as pdf
조회 수: 7 (최근 30일)
이전 댓글 표시
I am saving plot and contour figures in MATLAB R2018b as pdf using saveas(gcf,'filename.pdf') for both.
However, the contour figures come out with much higher resolution than the plot figures.
See the screen shot below: the pdf made from a contour figure is on the left, while the pdf made from a plot figure is on the right. This is an issue when I want to edit the figures in Illustrator because I am not able to edit or select any of the features in the pdf made from the plot figure.
Any suggestions on how I can improve the resolution of the pdf plot figs?
댓글 수: 0
답변 (1개)
Vinai Datta Thatiparthi
2019년 12월 17일
Hey Arianne!
I tried to reproduce the issue that you describe – I tried to plot a contour figure and a plot figure on R18b and saved them separately to .pdf format using the saveas function and used the Adobe Acrobat tool to view the results, and I’m not noticing any discrepancy - both the figures are clear and are at similar resolution.
As a workaround, consider altering the PaperPosition and PaperPositionMode parameters to control the size of the output. Also, the saveas function uses a resolution of 150 DPI by default, and in order to get results that are more consistent with how your figure looks, refer to this link here on how to save the figure at a specific size and resolution.
Hope this helps!
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!