How do you remove tick labels from a geoaxes object?

24 次查看(过去 30 天)
I have a geoaxes object inside a rather small panel object, and the figure needs all the room it can get. Currently the tick labels are taking up precious space in the panel, making the figure smaller than I'd like it to be. Is there any way to remove these labels?

采纳的回答

Adam Danz
Adam Danz 2022-1-17
gx = geoaxes();
gx.LatitudeAxis.TickLabels = {};
gx.LongitudeAxis.TickLabels = {};
If you want to remove the axis labels too,
% gx.LatitudeLabel.String = '';
% gx.LongitudeLabel.String = '';

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by