plotnine.geom_raster

geom_raster(mapping=None, data=None, **kwargs)

Rasterized Rectangles specified using center points

{usage}

Parameters

hjust : float = 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 = 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 = None

How to calculate values between the center points of adjacent rectangles. The default is None not to interpolate. Allowed values are:

"antialiased"
"nearest"
"bilinear"
"bicubic"
"spline16"
"spline36"
"hanning"
"hamming"
"hermite"
"kaiser"
"quadric"
"catrom"
"gaussian"
"bessel"
"mitchell"
"sinc"
"lanczos"
"blackman"
filterrad : float = 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

geom_rect
geom_tile