plotnine.geoms.annotation_stripes

class plotnine.geoms.annotation_stripes(fill='#AAAAAA', '#CCCCCC', fill_range='auto', direction='vertical', extend=0, 1, **kwargs)[source]

Alternating stripes, centered around each label.

Useful as a background for geom_jitter.

Parameters
filllist-like

List of colors for the strips. The default is ("#AAAAAA", "#CCCCCC")

fill_range: 'cycle' | 'nocycle' | 'auto' | 'no'

How to fill stripes beyond the range of scale:

'cycle'      # keep cycling the colors of the
             # stripes after the range ends
'nocycle'    # stop cycling the colors of the
             # stripes after the range ends
'auto'       # 'cycle' for continuous scales and
             # 'nocycle' for discrete scales.
'no'         # Do not add stripes passed the range
             # passed the range of the scales

Default is 'auto'.

direction'vertical' or 'horizontal'

Orientation of the stripes

extendtuple

Range of the stripes. The default is (0, 1), top to bottom. The values should be in the range [0, 1].

**kwargsdict

Other aesthetic parameters for the rectangular stripes. They include; alpha, color, linetype, and size.