Error using export app Export unsuccessful

8 Ansichten (letzte 30 Tage)
James Brown
James Brown am 5 Aug. 2021
Beantwortet: ZBMedina am 9 Sep. 2024
Using uifigure, geoglobe, and geoplot3.
The images are all correct but expertapp does not work. No further error messages.
Thank you.
  1 Kommentar
James Brown
James Brown am 6 Aug. 2021
This simple code fails. Is this a bug?
uif = uifigure;
g = geoglobe(uif);
geoplot3(g,[-60 -70],[120 140],[900000 900000]);
exportapp(uif,'test.jpg');

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Ananya Tewari
Ananya Tewari am 9 Aug. 2021
Hi,
The geoplot3 returns a Line Object and unlike most Line objects, lines created using geoplot3 cannot have their parent changed to any object except a geographic globe. I tried exporting the uif as a pdf and was able to do so. Please refer to the code below.
uif = uifigure;
g = geoglobe(uif);
geoplot3(g,[-60 -70],[120 140],[900000 900000]);
exportapp(uif,'test.pdf');
  1 Kommentar
Dinesh
Dinesh am 5 Jan. 2024
Hi Ananya. The PDF file is created, but it's blank. Did you also observe similar behavior? I'm trying to understand if this "blank" issue did not occur in earlier versions of MATLAB.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

ZBMedina
ZBMedina am 9 Sep. 2024
I believe this has been fixed.
uif = uifigure;
g = geoglobe(uif);
l = geoplot3(g,lat,lon,h,"c");
saveas(l,'my3Dfig3.fig')

Kategorien

Mehr zu Geographic Plots finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by