How to make camlight work with export_fig?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145184/image.png)
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!