Saving plot vs. contour figures as pdf

조회 수: 7 (최근 30일)
Arianne Petley-Ragan
Arianne Petley-Ragan 2019년 12월 12일
댓글: Arianne Petley-Ragan 2019년 12월 17일
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?
matlabproblem.PNG

답변 (1개)

Vinai Datta Thatiparthi
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!
  댓글 수: 1
Arianne Petley-Ragan
Arianne Petley-Ragan 2019년 12월 17일
Thanks for your answer Vinai.
I ended up figuring out my problem: I was plotting 100x100 matrix vs. 1x100 matrix which created a figure with a much larger size and lower resolution than usual.
Thanks anyways!

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

카테고리

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