フィルターのクリア

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 Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by