Use Geographic Plots in tiledlayout without multiple axis

11 ビュー (過去 30 日間)
F Schmid
F Schmid 2022 年 5 月 5 日
回答済み: Steve Eddins 2022 年 5 月 6 日
I want to create a tiledlayout with multiple geographic plots. When I create a layout there are two axis showing. This mistake was also in https://de.mathworks.com/matlabcentral/answers/1666249-how-do-i-draw-with-the-geoaxes-geoplot-function-on-the-axes-created-with-the-tiledlayout-function#answer_912699 but no one noticed.
t = tiledlayout('flow');
nexttile
gax1 = geoaxes(t);
gax1. Layout.Tile = 1; % tile location
geoplot(gax1, [47.62 61.20],[-122.33 -149.90],'g-*')

採用された回答

Steve Eddins
Steve Eddins 2022 年 5 月 6 日
From the doc for nexttile: "nexttile creates an axes object and places it into the next empty tile of the tiled chart layout that is in the current figure." So, I think your call to nexttile created an axes and placed it in the first slot in the flow layout. Then, when you called geoaxes(t), that created a second axes, a geoaxes, and placed it in the second slot in the flow layout.
I recommend that you take out the call to nexttile.
t = tiledlayout('flow');
gax1 = geoaxes(t);
gax1. Layout.Tile = 1; % tile location
geoplot(gax1, [47.62 61.20],[-122.33 -149.90],'g-*')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by