class_docstr: Create plots for `InteractTargetPlot` or `InteractPredictPlot`
  
  Methods
  -------
  plot_matplotlib : plot using matplotlib
  plot_plotly : plot using plotly
class_docstr_tok: ["Create","plots","for","`","InteractTargetPlot","`","or","`","InteractPredictPlot","`","Methods","--","--","--","-","plot_matplotlib",":","plot","using","matplotlib","plot_plotly",":","plot","using","plotly"]
code: def _draw_legend_colorbar_plotly(
      self,
      value_min,
      value_max,
      cb_domain_x,
      cb_domain_y,
      cmap,
      fig,
      grids,
  ):
      colorbar = go.Figure(
          data=go.Heatmap(
              z=[np.arange(1000)],
              showscale=False,
              colorscale=cmap,
              hoverinfo="none",
          )
      )
      fig.add_trace(colorbar.data[0], **grids)
      fig.update_yaxes(showticklabels=False, **grids)
      fig.update_xaxes(showticklabels=False, **grids)
      colors = getattr(px.colors.sequential, cmap)
  
      anno_kwargs = {
          "y": np.mean(cb_domain_y),
          "xref": "paper",
          "yref": "paper",
          "showarrow": False,
          "yanchor": "middle",
      }
  
      annotations = []
      for val, x, xanchor, color in [
          (value_min, cb_domain_x[0], "left", colors[-1]),
          (value_max, cb_domain_x[1], "right", "#ffffff"),
      ]:
          annotation = go.layout.Annotation(
              x=x,
              text=str(round(val, 3)),
              xanchor=xanchor,
              font=dict(color=color),
              **anno_kwargs,
          )
          annotations.append(annotation)
  
      return annotations
  
imports: from .styles import _prepare_plot_style, _axes_modify, _display_percentile, _modify_legend_axes, _get_axes_label
  import numpy
  from itertools import cycle
  import plotly.express
  import matplotlib
  import matplotlib.pyplot
  from matplotlib.gridspec import GridSpecFromSubplotSpec
  from mpl_toolkits.axes_grid1.inset_locator import inset_axes
  import matplotlib.patheffects
  import plotly.graph_objects
label_desc: Use image node_id 9 for calling the InteractInfoPlotEngine obj's underlying member method code with example usage: obj._draw_legend_colorbar_plotly(value_min, value_max, cb_domain_x, cb_domain_y, cmap, fig, grids) and returns: annotations