Remove or combine longitude and latitude axis label for geoscatter

12 vues (au cours des 30 derniers jours)
Lieke de Mare
Lieke de Mare le 4 Mai 2020
Commenté : MaHa le 24 Juin 2021
The geoscatter function seems to show the longitude and latitude next to the axis by default, how do I remove these or combine these axis in a tiledlayout?
Above is what I have now.
I already tries linkaxis() and using gx.LongitudeLabel.FontSize = 0; but both did work.

Réponse acceptée

Mehmed Saad
Mehmed Saad le 4 Mai 2020
lon = (-170:10:170);
lat = 50 * cosd(3*lon);
A = 101 + 100*(sind(2*lon));
C = cosd(4*lon);
% gx = geoaxes;
figure,
subplot(211)
gx(1)=geoscatter(lat,lon,A,C,'^');
subplot(223)
gx(2)=geoscatter(lat,lon,A,C,'^');
subplot(224)
gx(3)=geoscatter(lat,lon,A,C,'^');
for i=2:3
gx(i).Parent.LatitudeLabel.String = '';
gx(i).Parent.LongitudeLabel.String = '';
end
  1 commentaire
MaHa
MaHa le 24 Juin 2021
How would you remove the 45°N/0°/45°S from the bottom right panel please ?

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by