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 Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by