plotnine.guides.guide_colorbar

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

Guide colorbar

Parameters
barwidthpython:float

Width (in pixels) of the colorbar.

barheightpython:float

Height (in pixels) of the colorbar. The height is multiplied by a factor of 5.

nbinpython:int

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

rasterbool

Whether to render the colorbar as a raster object.

ticksbool

Whether tick marks on colorbar should be visible.

draw_ulimbool

Whether to show the upper limit tick marks.

draw_llimbool

Whether to show the lower limit tick marks.

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

Direction of the guide.

kwargspython:dict

Parameters passed on to guide