class_docstr: Rasterized Rectangles specified using center points
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
  
  hjust : float, default=0.5
      Horizontal justification for the rectangle at point `x`.
      Default is 0.5, which centers the rectangle horizontally.
      Must be in the range `[0, 1]`.
  vjust : float, default=0.5
      Vertical justification for the rectangle at point `y`
      Default is 0.5, which centers the rectangle vertically.
      Must be in the range `[0, 1]`.
  interpolation : str, default=None
      How to calculate values between the center points of
      adjacent rectangles. The default is `None`{.py} not to
      interpolate. Allowed values are:
      ```python
      "antialiased"
      "nearest"
      "bilinear"
      "bicubic"
      "spline16"
      "spline36"
      "hanning"
      "hamming"
      "hermite"
      "kaiser"
      "quadric"
      "catrom"
      "gaussian"
      "bessel"
      "mitchell"
      "sinc"
      "lanczos"
      "blackman"
      ```
  filterrad : float, default=4.0
      The filter radius for filters that have a radius parameter, i.e.
      when interpolation is one of: `sinc`, `lanczos`, `blackman`.
      Must be a number greater than zero.
  
  See Also
  --------
  plotnine.geoms.geom_rect
  plotnine.geoms.geom_tile
class_docstr_tok: ["Rasterized","Rectangles","specified","using","center","points","{","usage","}","Parameters","--","--","--","--","--","{","common_parameters","}","hjust",":","float",",","default=0.5","Horizontal","justification","for","the","rectangle","at","point","`","x","`",".","Default","is","0.5",",","which","centers","the","rectangle","horizontally",".","Must","be","in","the","range","`","[","0",",","1","]","`",".","vjust",":","float",",","default=0.5","Vertical","justification","for","the","rectangle","at","point","`","y","`","Default","is","0.5",",","which","centers","the","rectangle","vertically",".","Must","be","in","the","range","`","[","0",",","1","]","`",".","interpolation",":","str",",","default=None","How","to","calculate","values","between","the","center","points","of","adjacent","rectangles",".","The","default","is","`","None","`","{",".py","}","not","to","interpolate",".","Allowed","values","are",":","``","`","python","``","antialiased","''","``","nearest","''","``","bilinear","''","``","bicubic","''","``","spline16","''","``","spline36","''","``","hanning","''","``","hamming","''","``","hermite","''","``","kaiser","''","``","quadric","''","``","catrom","''","``","gaussian","''","``","bessel","''","``","mitchell","''","``","sinc","''","``","lanczos","''","``","blackman","''","``","`","filterrad",":","float",",","default=4.0","The","filter","radius","for","filters","that","have","a","radius","parameter",",","i.e",".","when","interpolation","is","one","of",":","`","sinc","`",",","`","lanczos","`",",","`","blackman","`",".","Must","be","a","number","greater","than","zero",".","See","Also","--","--","--","--","plotnine.geoms.geom_rect","plotnine.geoms.geom_tile"]
code: def __init__(
      self,
      mapping: Aes | None = None,
      data: DataLike | None = None,
      **kwargs: Any,
  ):
      # Silently accept:
      #    1. interpolate
      #    2. bool values for interpolation
      if "interpolate" in kwargs:
          kwargs["interpolation"] = kwargs.pop("interpolate")
      if isinstance(kwargs.get("interpolation", None), bool):
          if kwargs["interpolation"] is True:
              kwargs["interpolation"] = "bilinear"
          else:
              kwargs["interpolation"] = None
  
      super().__init__(mapping, data, **kwargs)
  
file_path: plotnine/plotnine/geoms/geom_raster.py
imports: from __future__ import annotations
  import typing
  from warnings import warn
  import numpy
  from .._utils import resolution
  from ..coords import coord_cartesian
  from ..doctools import document
  from ..exceptions import PlotnineError, PlotnineWarning
  from .geom import geom
  from .geom_polygon import geom_polygon
label_desc: Use image node_id 1 to create a new geom_raster object from inherited base classes: geom with example: obj = geom_raster(mapping, data)