Geographic axes 'layer' on top of graphic

15 次查看(过去 30 天)
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?

回答(1 个)

Mann Baidi
Mann Baidi 2023-12-5
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!

类别

Help CenterFile Exchange 中查找有关 Geographic Plots 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by