class_docstr: Rectangles
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
class_docstr_tok: ["Rectangles","{","usage","}","Parameters","--","--","--","--","--","{","common_parameters","}"]
docstr: Plot all groups
docstr_tok: ["Plot","all","groups"]
code: def draw_panel(
      self,
      data: pd.DataFrame,
      panel_params: panel_view,
      coord: Coord,
      ax: Axes,
      **params: Any,
  ):
      """
      Plot all groups
      """
      if not coord.is_linear:
          data = _rectangles_to_polygons(data)
          for _, gdata in data.groupby("group"):
              gdata.reset_index(inplace=True, drop=True)
              geom_polygon.draw_group(
                  gdata, panel_params, coord, ax, **params
              )
      else:
          self.draw_group(data, panel_params, coord, ax, **params)
  
file_path: plotnine/plotnine/geoms/geom_rect.py
imports: from __future__ import annotations
  import typing
  import numpy
  import pandas
  from .._utils import SIZE_FACTOR, to_rgba
  from ..doctools import document
  from .geom import geom
  from .geom_polygon import geom_polygon
label_desc: Use image node_id 1 for calling the geom_rect obj's underlying member method code with example usage: obj.draw_panel(data, panel_params, coord, ax) without return types