plotnine.guides.guide_colorbar

class plotnine.guides.guide_colorbar(**kwargs)[source]

Guide colorbar

Parameters:
barwidth : float

Width (in pixels) of the colorbar.

barheight : float

Height (in pixels) of the colorbar.

nbin : int

Number of bins for drawing a colorbar. A larger value yields a smoother colorbar. Default is 20.

raster : bool

Whether to render the colorbar as a raster object.

ticks : bool

Whether tick marks on colorbar should be visible.

draw_ulim : bool

Whether to show the upper limit tick marks.

draw_llim : bool

Whether to show the lower limit tick marks.

direction : str in ['horizontal', 'vertical']

Direction of the guide.

kwargs : dict

Parameters passed on to guide