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 prepare_data(self, class_idx):
      target = self.plot_obj.target[class_idx]
      cmap = next(self.cmaps)
      pdp_x, pdp_y = [
          copy.deepcopy(obj.results[class_idx].pdp)
          for obj in self.plot_obj.pdp_isolate_objs
      ]
      pdp_xy = copy.deepcopy(self.plot_obj.results[class_idx].pdp)
      pdp_values = (
          np.concatenate((pdp_x, pdp_y, pdp_xy))
          if self.plot_style.plot_pdp
          else pdp_xy
      )
      pdp_range = [np.min(pdp_values), np.max(pdp_values)]
  
      return pdp_x, pdp_y, pdp_xy, pdp_range, target, cmap
  
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 16 for calling the PDPInteractPlotEngine obj's underlying member method code with example usage: obj.prepare_data(class_idx) and returns: pdp_x,  pdp_y,  pdp_xy,  pdp_range,  target,  cmap