code: def create_icon_axes(
      fig, ax_position, lw_bars, lw_grid, lw_border, rgrid
  ):
      """
      Create a polar Axes containing the matplotlib radar plot.
  
      Parameters
      ----------
      fig : matplotlib.figure.Figure
          The figure to draw into.
      ax_position : (float, float, float, float)
          The position of the created Axes in figure coordinates as
          (x, y, width, height).
      lw_bars : float
          The linewidth of the bars.
      lw_grid : float
          The linewidth of the grid.
      lw_border : float
          The linewidth of the Axes border.
      rgrid : array-like
          Positions of the radial grid.
  
      Returns
      -------
      ax : matplotlib.axes.Axes
          The created Axes.
      """
      with plt.rc_context(
          {"axes.edgecolor": MPL_BLUE, "axes.linewidth": lw_border}
      ):
          ax = fig.add_axes(ax_position, projection="polar")
          ax.set_axisbelow(True)
  
          N = 7
          arc = 2.0 * np.pi
          theta = np.arange(0.0, arc, arc / N)
          radii = np.array([2, 6, 8, 7, 4, 5, 8])
          width = (
              np.pi / 4 * np.array([0.4, 0.4, 0.6, 0.8, 0.2, 0.5, 0.3])
          )
          bars = ax.bar(
              theta,
              radii,
              width=width,
              bottom=0.0,
              align="edge",
              edgecolor="0.3",
              lw=lw_bars,
          )
          for r, bar in zip(radii, bars):
              color = (
                  *cm.jet(r / 10.0)[:3],
                  0.6,
              )  # color from jet with alpha=0.6
              bar.set_facecolor(color)
  
          ax.tick_params(
              labelbottom=False,
              labeltop=False,
              labelleft=False,
              labelright=False,
          )
  
          ax.grid(lw=lw_grid, color="0.9")
          ax.set_rmax(9)
          ax.set_yticks(rgrid)
  
          # the actual visible background - extends a bit beyond the axis
          ax.add_patch(
              Rectangle(
                  (0, 0),
                  arc,
                  9.58,
                  facecolor="white",
                  zorder=0,
                  clip_on=False,
                  in_layout=False,
              )
          )
          return ax
  
file_path: matplotlib/galleries/examples/misc/logos2.py
imports: import matplotlib.pyplot
  import numpy
  import matplotlib.cm
  import matplotlib.font_manager
  from matplotlib.patches import PathPatch, Rectangle
  from matplotlib.text import TextPath
  import matplotlib.transforms
label_desc: Use image node_id 2 for calling a global function with example usage: create_icon_axes(fig, ax_position, lw_bars, lw_grid, lw_border, rgrid) and returns: ax