Surf plot upside down when printed

6 views (last 30 days)
Pl Pl
Pl Pl on 26 Nov 2013
Commented: Pl Pl on 26 Nov 2013
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 Comment
Pl Pl
Pl Pl on 26 Nov 2013
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.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!