class_docstr: Create plots for `PDPInteract`
  
  Methods
  -------
  plot : generate the plot
  plot_matplotlib : plot using matplotlib
  plot_plotly : plot using plotly
class_docstr_tok: ["Create","plots","for","`","PDPInteract","`","Methods","--","--","--","-","plot",":","generate","the","plot","plot_matplotlib",":","plot","using","matplotlib","plot_plotly",":","plot","using","plotly"]
code: def _insert_colorbar(self, im, norm, axes):
      cax = inset_axes(
          axes,
          width="100%",
          height="100%",
          loc="right",
          bbox_to_anchor=(
              1.08
              if self.plot_style.show_percentile
              and not self.plot_style.plot_pdp
              else 1.02,
              0.0,
              0.03,
              1,
          ),
          bbox_transform=axes.transAxes,
          borderpad=0,
      )
      grids_x, grids_y = self.feat_grids
      cb_num_grids = np.max(
          [np.min([len(grids_x), len(grids_y), 8]), 8]
      )
      boundaries = [
          round(v, 3)
          for v in np.linspace(norm.vmin, norm.vmax, cb_num_grids)
      ]
      cb = plt.colorbar(im, cax=cax, boundaries=boundaries)
      cb.ax.tick_params(**self.plot_style.tick)
      cb.outline.set_visible(False)
  
imports: from .utils import _get_string, _to_rgba
  from .styles import _prepare_plot_style, _axes_modify, _display_percentile, _modify_legend_axes, _get_axes_label
  import pandas
  import numpy
  import matplotlib
  import matplotlib.pyplot
  from matplotlib.gridspec import GridSpecFromSubplotSpec
  import copy
  from mpl_toolkits.axes_grid1.inset_locator import inset_axes
  import plotly.graph_objects
  from sklearn.cluster import MiniBatchKMeans, KMeans
  from itertools import cycle
label_desc: Use image node_id 15 for calling the PDPInteractPlotEngine obj's underlying member method code with example usage: obj._insert_colorbar(im, norm, axes) without return types