LinePlot#

missionbio.plotting.lineplot.LinePlot

class LinePlot(x: Sequence, y: Sequence[float], x_groups: Optional[Sequence] = None, collapse: bool = False, y_rect: Tuple[float, float] = (), title: str = '', y_title: str = '')#

A line plot to visualize CNV.

Line plot specifically tailored for CNV.

Parameters:
xSequence

The x-axis values are assumed to be categorical linear values are not supported.

ySequence[float]

The y-axis values are assumed to be floating point.

x_groupsnp.ndarray

The label for each column. These must be contiguous. For example, [“1”, “2”, “2”] is permitted, but [“1”, “2”, “1”] is not.

collapsebool

If True, the values are grouped on the x-axis based on x_groups. Otherwise, the values are plotted sequentially and the x-axis is divided into groups based on x_groups.

y_rectTuple[2]:

The upper and lower bound of the y-values where the rectangle will be drawn

titlestr

The title of the plot

y_titlestr

The title of the y-axis