mkt.databases.plot.kinase_group_legend_handles
- mkt.databases.plot.kinase_group_legend_handles(fams: set[str] | None = None, *, style: str = 'patch', markersize: float = 8, edgecolor: str = 'none', fallback: str = '#999999') list[source]
Build kinase-group legend handles in the canonical kinome-tree order.
Shared across every figure that carries a kinase-group color legend so their ordering and colors stay consistent.
- Parameters:
fams (set[str] | None) – Family labels present in the drawn subset; None uses all groups in
DICT_KINASE_GROUP_COLORS.style (str) – Handle style:
"patch"for a filled swatch (matplotlib.patches.Patch) or"marker"for a square-markermatplotlib.lines.Line2D; default"patch".markersize (float) – Marker size when
style="marker"; default 8.edgecolor (str) – Swatch edge color when
style="patch"; default"none".fallback (str) – Color for families absent from
DICT_KINASE_GROUP_COLORS.
- Returns:
One handle per family, in display order, each labeled with its family.
- Return type:
list