class_docstr: Create plots for `PDPIsolate`
  
  Methods
  -------
  plot : generate the plot
  plot_matplotlib : plot using matplotlib
  plot_plotly : plot using plotly
class_docstr_tok: ["Create","plots","for","`","PDPIsolate","`","Methods","--","--","--","-","plot",":","generate","the","plot","plot_matplotlib",":","plot","using","matplotlib","plot_plotly",":","plot","using","plotly"]
code: def prepare_grids(self, nc, nr):
      if self.plot_style.plot_pts_dist:
          line_grids = {"col": nc, "row": nr * 2 - 1}
          dist_grids = {"col": nc, "row": nr * 2}
      else:
          line_grids = {"col": nc, "row": nr}
          dist_grids = None
  
      return line_grids, dist_grids
  
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 20 for calling the PDPIsolatePlotEngine obj's underlying member method code with example usage: obj.prepare_grids(nc, nr) and returns: line_grids,  dist_grids