主要内容

本页采用了机器翻译。点击此处可查看英文原文。

地图自定义

更改网格线,添加注释,更改颜色图,使用底图

通过定制地图来传达数据信息或增强数据的可视化效果。例如,您可以添加标题、更改网格线的外观或添加注释。您还可以通过使用底图为数据提供地理背景。

函数

全部展开

范围与刻度

geolimits设置或查询地理范围
geotickformat设置或查询地理刻度标签格式

标签与注释

title添加标题
subtitle为绘图添加副标题
legend在坐标区上添加图例
text向数据点添加文本描述
fontsize更改图窗中对象的字体大小 (自 R2022a 起)

颜色图

colormap查看并设置当前颜色图
colorbar显示色阶的颜色栏
clim设置颜色图范围(在 R2022a 中从 caxis 更名为现名称)

导出

exportgraphics导出图窗或图
copygraphics将绘图或图形内容复制到剪贴板

框架、网格和标签

tightmap移除基于 axesm 的地图周围的空白区域
framemControl frame of axesm-based map
gridm控制基于 axesm 的地图上的网格线
plabel控制基于 axesm 的地图上的平行标签
mlabel控制基于 axesm 的地图上的经线标签
mlabelzero22pi在基于 axesm 的地图上显示经线标签,范围为 0 至 360 度

注解

northarrow在基于 axesm 的地图上添加北向箭头
scalerulerAdd or modify graphic scale on axesm-based map
textmProject text onto axesm-based map
rotatetextRotate text to projected graticule on axesm-based map

印刷

axesscaleResize axes for equivalent scale
paperscaleSet figure properties for printing axesm-based map at map scale
previewmapView figure at printed size
geobasemap设置或查询底图
readBasemapImageRead image from geographic basemap (自 R2022a 起)
addCustomBasemapAdd custom basemap
mbtileswriteWrite georeferenced image or data grid to MBTiles file (自 R2024b 起)
removeCustomBasemapRemove custom basemap
addToolbarMapButtonAdd map button to toolbar (自 R2021b 起)
removeToolbarMapButtonRemove map button from toolbar (自 R2021b 起)

主题

地图坐标轴

基于 axesm 的地图

  • The Map Frame
    A map frame is the outline of the limits of a map. The shape of the frame is characteristic of the projection.
  • Map and Frame Limits
    The map latitude and longitude limits define the extents of geodata to be displayed. The frame limits control how the frame fits around the displayed data.
  • Map Limit Properties
    Map limits have properties that provide a convenient and intuitive way to specify your map projection origin and frame limits. Learn how to set these properties, and when you should avoid the properties.
  • The Map Grid
    The map grid is the display of meridians and parallels. The spacing and curvature of the grid lines are characteristic of the projection.
  • Inset Maps
    Inset maps provide context to maps by including overviews at smaller scales.

底图