Why is zbuffer no longer available in 2014b? I need it. Thanks!
古いコメントを表示
I installed matlab 2014b and when opening an old figure it looked much different, and then I realized it was now rendered with OpenGL when it used to be in zbuffer. But surprisingly, in release 2014b, the zbuffer option is no longer available! (at least in the dropdown list of the property inspector). Only painters and OpenGL. Why did you remove zbuffer? I need it! Thanks.
1 件のコメント
Sean de Wolski
2015 年 1 月 6 日
What do you need it for?
採用された回答
その他の回答 (1 件)
Mariano
2015 年 1 月 9 日
0 投票
1 件のコメント
Mike Garrity
2015 年 1 月 12 日
編集済み: Mike Garrity
2015 年 1 月 12 日
That sounds like the new ClippingStyle property. You can set it to either 'rectangle', to get the behavior that zbuffer was giving you, or '3dbox' to clip against the ZLim. Consider this example:
line([0 1],[0 1],[0 1])
xlim([0 1])
ylim([0 1])
zlim([.25 .75])
Now setting ClippingStyle to 3dbox (the default) yields this:
set(gca,'ClippingStyle','3dbox')

And setting ClippingStyle to rectangle yields this:
set(gca,'ClippingStyle','rectangle')

It's a little more complicated than this because all of the renderers had bugs in this area in earlier releases, but I think that you probably want to be using ClippingStyle instead of Renderer.
カテゴリ
ヘルプ センター および File Exchange で Graphics Performance についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
