フィルターのクリア

How do I deidentify geoplot data?

5 ビュー (過去 30 日間)
Mia Hoffman
Mia Hoffman 2021 年 11 月 24 日
コメント済み: Dave B 2021 年 11 月 24 日
When using geoplot, the latitude and longitude values are automatically added to the axes. Additionally, the street names are also shown. Does anyone know how to turn off the xticks and yticks in a geoplot? Also, does anyone know how to turn off geolabels on the plot, such as street and park names?

回答 (1 件)

Dave B
Dave B 2021 年 11 月 24 日
You can turn off the Tick marks with the TickDir property on the GeographicAxes:
geoplot(42+rand(10,1), -71+rand(10,1))
ax=gca;
ax.TickDir='none';
(note: on older MATLAB's you had to instead set the TickLength property to [0 0])
To remove the tick labels (and the marks along with them), you have to drill down into the Latitude and Longitude axis:
geoplot(42+rand(10,1), -71+rand(10,1))
ax.LatitudeAxis.TickValues=[];
ax.LongitudeAxis.TickValues=[];
I'm less sure about turning off the labels, I think they just come with the basemap?
  1 件のコメント
Dave B
Dave B 2021 年 11 月 24 日
(for the words 'Latitude' and 'Longitude')
ax.LatitudeAxis.Label.String='';
ax.LongitudeAxis.Label.String='';

サインインしてコメントする。

カテゴリ

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