class_docstr: Rectangles are polygons in 2D space where the key dimensions represent
  the bottom-left and top-right corner of the rectangle.
class_docstr_tok: ["Rectangles","are","polygons","in","2D","space","where","the","key","dimensions","represent","the","bottom-left","and","top-right","corner","of","the","rectangle","."]
code: def init_artists(self, ax, plot_args, plot_kwargs):
      if "c" in plot_kwargs:
          plot_kwargs["array"] = plot_kwargs.pop("c")
      if "vmin" in plot_kwargs and "vmax" in plot_kwargs:
          plot_kwargs["clim"] = plot_kwargs.pop(
              "vmin"
          ), plot_kwargs.pop("vmax")
      if "array" not in plot_kwargs and "cmap" in plot_kwargs:
          del plot_kwargs["cmap"]
      line_segments = PatchCollection(*plot_args, **plot_kwargs)
      ax.add_collection(line_segments)
      return {"artist": line_segments}
  
file_path: holoviews/holoviews/plotting/mpl/geometry.py
imports: import numpy
  from matplotlib.collections import LineCollection, PatchCollection
  from matplotlib.patches import Rectangle
  from ...core.options import abbreviated_exception
  from ..mixins import GeomMixin
  from .element import ColorbarPlot
  from .path import PathPlot, PolygonPlot
label_desc: Use image node_id 1 for calling the RectanglesPlot obj's underlying member method code with example usage: obj.init_artists(ax, plot_args, plot_kwargs) and returns: dict