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 get_data(self, element, ranges, style):
      # Get [x0, y0, x1, y1]
      inds = (1, 0, 3, 2) if self.invert_axes else (0, 1, 2, 3)
  
      x0s, y0s, x1s, y1s = (element.dimension_values(kd) for kd in inds)
      x0s, x1s = np.min([x0s, x1s], axis=0), np.max([x0s, x1s], axis=0)
      y0s, y1s = np.min([y0s, y1s], axis=0), np.max([y0s, y1s], axis=0)
  
      dims = element.dimensions()
      data = [
          Rectangle((x0, y0), x1, y1)
          for (x0, y0, x1, y1) in zip(x0s, y0s, x1s - x0s, y1s - y0s)
      ]
  
      with abbreviated_exception():
          style = self._apply_transforms(element, ranges, style)
      return (data,), style, {"dimensions": dims}
  
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 2 for calling the RectanglesPlot obj's underlying member method code with example usage: obj.get_data(element, ranges, style) and returns: data,  style,  dict