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.
Surf plot upside down when printed
2 views (last 30 days)
Show older comments
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153281/image.jpeg)
And here is how the eps printed file looks like:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153282/image.jpeg)
Any idea where this could come from?
Many thanks,
Answers (0)
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!