Axes labels in .eps file shifted using export_fig

조회 수: 1 (최근 30일)
Qingjie
Qingjie 2016년 7월 6일
Hi, all,
I am using export_fig to create .eps figures but encountered a problem. Both the x label and y label are not centered with respect to the axes; instead they are centered with respect to the cropped figures. I am using MATLAB2016a on a 64bit Ubuntu system. The following code were used:
x=0:0.001:3*3.1415926;
y=sin(x);
plot(x,y,'r');
axis([0 3*3.1415926 -1 1]);
xlabel('xxxxxxxxxxxxYxxxxxxxxxxxx','FontSize',16);
ylabel('yyyyyyyyyyyyXyyyyyyyyyyyy','FontSize',16);
set(gcf,'PaperPositionMode','manual');
export_fig test.eps -painters -r500 -q100 -cmyk -transparent;
Could anyone provide a solution to this problem? Thanks!
Qingjie

답변 (0개)

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by