alphapepttools.pl.add_lines#
- alphapepttools.pl.add_lines(ax, intercepts, linetype='vline', color='black', linestyle='--', linewidth=1, line_kwargs=None)#
Add a vertical or horizontal line to a matplotlib axes object
- Parameters:
ax (plt.Axes) – Matplotlib axes object to add the line to.
linetype (str) – Type of line to add, either ‘vline’ or ‘hline’.
intercepts (float | list[float | int]) – Intercepts of the line(s) to add.
color (str, optional) – Color of the line(s), by default “black”.
linestyle (str, optional) – Linestyle of the line(s), by default “–“.
linewidth (float, optional) – Linewidth of the line(s), by default 1.
line_kwargs (dict, optional) – Additional keyword arguments for the line function, by default None. Will be overridden by color, linestyle, and linewidth arguments.
- Return type:
- Returns:
None