code: def main():
      projection = ccrs.PlateCarree()
      axes_class = (GeoAxes, dict(projection=projection))
  
      lons, lats, times, data = sample_data_3d((6, 73, 145))
  
      fig = plt.figure()
      axgr = AxesGrid(
          fig,
          111,
          axes_class=axes_class,
          nrows_ncols=(3, 2),
          axes_pad=0.6,
          cbar_location="right",
          cbar_mode="single",
          cbar_pad=0.2,
          cbar_size="3%",
          label_mode="keep",
      )
  
      for i, ax in enumerate(axgr):
          ax.coastlines()
          ax.set_xticks(np.linspace(-180, 180, 5), crs=projection)
          ax.set_yticks(np.linspace(-90, 90, 5), crs=projection)
          lon_formatter = LongitudeFormatter(zero_direction_label=True)
          lat_formatter = LatitudeFormatter()
          ax.xaxis.set_major_formatter(lon_formatter)
          ax.yaxis.set_major_formatter(lat_formatter)
  
          p = ax.contourf(
              lons,
              lats,
              data[i, ...],
              transform=projection,
              cmap="RdBu",
          )
  
      axgr.cbar_axes[0].colorbar(p)
  
      plt.show()
  
file_path: cartopy/examples/miscellanea/axes_grid_basic.py
imports: import matplotlib.pyplot
  from mpl_toolkits.axes_grid1 import AxesGrid
  import numpy
  import cartopy.crs
  from cartopy.mpl.geoaxes import GeoAxes
  from cartopy.mpl.ticker import LatitudeFormatter, LongitudeFormatter
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types