Surf plot upside down when printed

조회 수: 10 (최근 30일)
Pl Pl
Pl Pl 2013년 11월 26일
댓글: Pl Pl 2013년 11월 26일
Dear all,
I have a rather weird bug with the surf function. Here is what I do:
figure
surf(XF,YF,ZF,FreeEnergy,'EdgeColor','none','LineStyle','none','FaceLighting','phong')
view([0.5;0.5;0.2])
set(gca, 'visible', 'on');
colorbar
print -painters -depsc -r600 folder/figure.eps
Attached are two pictures: one showing how it looks like in the Matlab window, the other how the printed file looks like. You see that the sphere has been rotated by pi, but the axes are not modified.
Here is how it looks like in the Matlab window:
And here is how the eps printed file looks like:
Any idea where this could come from?
Many thanks,
  댓글 수: 1
Pl Pl
Pl Pl 2013년 11월 26일
It seems it's because the painters renderer doesn't work well with 3d plots. I'm not the only one having problems with that apparently. I wanted to try the OpenGL renderer but for some reason Matlab doesn't find it although it is installed. I'm going to have a look at that.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by