필터 지우기
필터 지우기

Geographic axes 'layer' on top of graphic

조회 수: 10 (최근 30일)
Brock Mitts
Brock Mitts 2022년 2월 21일
답변: Mann Baidi 2023년 12월 5일
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