alphagenome.visualization.plot_transcripts.draw_interval#
- alphagenome.visualization.plot_transcripts.draw_interval(ax, interval, y, label=None, height=0.5, shift=0, label_color='#7f7f7f', **kwargs)[source]#
Draw rectangle patch on the axis given a genomic interval.
- Parameters:
ax (
Axes
) – Matplotlib axis onto which to draw the interval.interval (
Interval
) – Genomic interval to draw.y (
float
) – Vertical position at which to draw the interval.label (
Optional
[str
] (default:None
)) – Optional label to draw next to the interval.height (
float
(default:0.5
)) – Height of the interval.shift (
int
(default:0
)) – X-axis shift.label_color (
str
(default:'#7f7f7f'
)) – Label color in hex string format.**kwargs – Additional keyword arguments passed to matplotlib plotting functions.