mkt.databases.plot._draw_sequence_strip

mkt.databases.plot._draw_sequence_strip(ax, y: float, colors: list[str], rect_height: float = 0.6, x_offset: float = 0) None[source]

Draw a horizontal strip of colored rectangles representing a sequence.

Parameters:

axmatplotlib.axes.Axes

Axes to draw on.

yfloat

Vertical center of the strip.

colorslist[str]

Color for each position.

rect_heightfloat

Height of each rectangle.

x_offsetfloat

Horizontal offset for the strip start.