Geographic axes 'layer' on top of graphic
12 次查看(过去 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?
0 个评论
回答(1 个)
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!