Filter löschen
Filter löschen

Geographic axes 'layer' on top of graphic

10 Ansichten (letzte 30 Tage)
Brock Mitts
Brock Mitts am 21 Feb. 2022
Beantwortet: Mann Baidi am 5 Dez. 2023
I am working with geographic axes using geoplot and geoscatter and would like to have the axes on top of the graphics. With normal axes, I would try set(gca,'Layer','top'); however, when I attempt this, an error returns stating that geographic axes do not have a 'Layer' property. Is there any way to bring the axes above the graphics for these types of plots?

Antworten (1)

Mann Baidi
Mann Baidi am 5 Dez. 2023
Hi Brock,
As per my understanding, you would like to get the axes of the plot on top of the graph while using “geoplot” function.
As far as I know, the axes are on the top of the figure by default while using “geoplot” function.
load usapolygon.mat
geoplot(uslat,uslon)
However, if you would like to increase the thickness of the axes of the graph, instead of using “set(gca,'Layer','top');”, you can try adding "set(gca,'box','on','ticklength',[0.5 0.5])" in your script.
load usapolygon.mat
geoplot(uslat,uslon)
set(gca,'box','on','ticklength',[0.5 0.5])
Hope this will help in resolving the issue!

Kategorien

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

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by