2025年matlab图片渲染,MATLAB图渲染:OpenGL与Painters?

matlab图片渲染,MATLAB图渲染:OpenGL与Painters?当涉及哪个渲染器用于 MATLAB 数字或什么时候重要时 我无能为力 但我遇到了一些重要的例子 plot 0 0 ko markersize 50 linewidth 8 set gcf renderer opengl set gcf

大家好,我是讯享网,很高兴认识大家。

当涉及哪个渲染器用于MATLAB数字或什么时候重要时,我无能为力,但我遇到了一些重要的例子:

plot(0,0,'ko','markersize',50,'linewidth',8);

set(gcf,'renderer','opengl');

set(gcf,'renderer','painters');

左= OpenGL,右=画家:

5gE6x.png
讯享网

LsOAj.png

(运行Windows 7 Professional和MATLAB R2015b)

是否有时候使用OpenGL渲染器产生比Painters更好的结果?一般来说,两个渲染器有何不同?

**答案 这些是我所知道的差异

> OpenGL是默认渲染器

> OpenGL允许绘制透明度,而Painter则不允许

>如果使用OpenGL时出现图形错误或者Matlab崩溃,请使用Painter

>选择Painter以postscript格式导出数字.使用OpenGL

当图形太复杂时,Matlab保存为Bitmap,你无法编辑它.

从Mathworks website (Scroll down to “renderer”):

‘opengl’ — OpenGL® renderer. This option enables MATLAB to access

graphics hardware if it is available on your system. The OpenGL

renderer displays objects sorted in front to back order, as seen on

the monitor. Lines always draw in front of faces when at the same

location on the plane of the monitor.

‘painters’ — Painters renderer. This option works well for axes in a

2-D view. In 2-D, the Painters renderer sorts graphics objects by

child order (order specified). In 3-D, the Painters renderer sorts

objects in front to back order. However, it might not correctly draw

intersecting polygons in 3-D.

有关使用OpenGL修复低级图形问题,请参阅此link.

小讯
上一篇 2025-04-09 15:58
下一篇 2025-03-09 16:08

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/125230.html