Azzera filtri
Azzera filtri

How to make camlight work with export_fig?

2 visualizzazioni (ultimi 30 giorni)
Jon Vegard
Jon Vegard il 24 Ago 2014
Risposto: Jon Vegard il 30 Ago 2014
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')

Risposte (1)

Jon Vegard
Jon Vegard il 30 Ago 2014
I'm also interested in solutions not involving export_fig.

Categorie

Scopri di più su Lighting, Transparency, and Shading in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by