Is there a way to specify the exact size of axes in EPS files?

조회 수: 8 (최근 30일)
Kouichi Nakamura
Kouichi Nakamura 2015년 7월 12일
댓글: Kouichi Nakamura 2015년 7월 12일
In my current work flow, I export MATLAB figures with
print('filename1.eps','-depsc')
in order to edit in a graphic software. However, the size of the axes are automatically set by default. This means I don't have control on how large or small my plots are in the output. When I need to combine multiple MATLAB figures to create a composite figure for a paper, it is often cumbersome to adjust the size of each plot every time I update them.
Is there a way to specify the exact size of axes in EPS files, for exampe X axis to be 10.0 cm whereas Y axis to be 7.0 cm?

채택된 답변

Jan
Jan 2015년 7월 12일
Set the figure properties 'PaperPosition' and 'PaperUnits' accordingly.

추가 답변 (1개)

Kouichi Nakamura
Kouichi Nakamura 2015년 7월 12일
It's probably...
set(gca, 'Units', 'centimeters', 'Position', [2, 2, 8, 11]);
print('filename1.eps','-depsc')
Then open the EPS with a graphic software to see if the width is 8 cm and the height 11 cm.

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by