@Cris LaPierre invoking your name here since you answered another question about geoglobe() a couple weeks ago. Thanks for any help!
How to export geoglobe() plots?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
leka0024
am 4 Jan. 2024
Kommentiert: leka0024
am 4 Apr. 2024
Example code:
uif = uifigure;
g = geoglobe(uif,"Basemap","landcover");
Have then tried (first line was part of an attempt to make an animation):
currentFrame = getframe(g);
exportapp(uif,[pwd '\test.png']);
and both fail with errors:
Error using matlab.ui.internal.FigureImageCaptureService.exportToPngBase64
Export unsuccessful
Error using exportapp
Export unsuccessful
Then tried:
exportgraphics(uif,[pwd '\test.png']);
and this does create the picture file, but it's just a blank gray box.
The following warning showed:
Warning: UI components will not be included in the output. To include UI components, use the 'exportapp' function.
How can the geoglobe plot be exported to picture or video file?
Akzeptierte Antwort
Cris LaPierre
am 5 Jan. 2024
Bearbeitet: Cris LaPierre
am 5 Jan. 2024
Based on this post, I would have expected exportgraphics or exportapp to work. However, geoglobe is a little more than just a uifigure (html component for the globe) so it does not currently appear to be supported by the exportgraphics or exportapp functions. I have submitted an internal report.
I did come across this post, but the solution there (saveas to pdf) just produces a blank pdf, so not a viable solution either.
6 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Earth and Planetary Science 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!