How to make camlight work with export_fig?

조회 수: 2 (최근 30일)
Jon Vegard
Jon Vegard 2014년 8월 24일
답변: Jon Vegard 2014년 8월 30일
I want to create high quality pdf images of 3D plots using camlight and export_fig. The following code yields the plot below, but the exported pdf (see attached pdf) file lack the camlight. How do I fix this?
surf(peaks(100),'EdgeColor', 'none')
camlight;
set(gca, 'Color', 'none');
export_fig('../graphics/test', '-png', '-transparent')

답변 (1개)

Jon Vegard
Jon Vegard 2014년 8월 30일
I'm also interested in solutions not involving export_fig.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by