plotnine.guides.guide_colorbar

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

Guide colorbar

Parameters:
barwidthfloat

Width (in pixels) of the colorbar.

barheightfloat

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

nbinint

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.

directionstr in ['horizontal', 'vertical']

Direction of the guide.

kwargsdict

Parameters passed on to guide