Geographic axes 'layer' on top of graphic
11 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Mann Baidi
on 5 Dec 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!
0 Comments
See Also
Categories
Find more on Geographic Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!