Why do I get white line artifacts in my image when rotating a 3-D SURF plot in MATLAB 7.1 (R14SP3)?

6 次查看(过去 30 天)
If I create a 3D plot using SURF and then rotate the image so that only one flat plane is displayed, there is a white outline artifact around the edges of the plot. It shows up in the figure window and when the image is exported.

采纳的回答

MathWorks Support Team
The white line is an artifact of the OpenGL renderer. To work around this issue, change the renderer to 'painters', using the following command:
set(gcf,'renderer','painters')
Likewise, when exporting the figure, you can use the following code to specify the renderer:
print('-djpeg', '-r90','-painters', jpgfilename)
This will create a '.jpg' file using the painters renderer.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

产品


版本

R14SP1

Community Treasure Hunt

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

Start Hunting!

Translated by