mkt.databases.plot_config.UpsetPlotConfig
- class mkt.databases.plot_config.UpsetPlotConfig(figsize: list[float] = <factory>, dict_colors: dict = <factory>, element_size: float | None = None, intersection_plot_elements: int = 6, totals_plot_elements: int = 2, tighten_totals_gap: bool = False, totals_gap_margin: float = 0.01, cap_intersection_ylim: bool = False, pct_label_fontsize: int = 8, count_label_fontsize: int = 8, filename: str = 'upset_plot')[source]
Bases:
objectAesthetics for the KinaseInfo source-coverage upset plot.
Defaults reproduce the original (pre-config) figure for backwards compatibility. Use
preprint_2026()for the smaller publication size.- __init__(figsize: list[float] = <factory>, dict_colors: dict = <factory>, element_size: float | None = None, intersection_plot_elements: int = 6, totals_plot_elements: int = 2, tighten_totals_gap: bool = False, totals_gap_margin: float = 0.01, cap_intersection_ylim: bool = False, pct_label_fontsize: int = 8, count_label_fontsize: int = 8, filename: str = 'upset_plot') None
Methods
__eq__(other)Return self==value.
__init__([figsize, dict_colors, ...])~5 x 3.5 in plot-area variant for the 2026 preprint figures.
Attributes
__dataclass_fields____dataclass_params____match_args__- __init__(figsize: list[float] = <factory>, dict_colors: dict = <factory>, element_size: float | None = None, intersection_plot_elements: int = 6, totals_plot_elements: int = 2, tighten_totals_gap: bool = False, totals_gap_margin: float = 0.01, cap_intersection_ylim: bool = False, pct_label_fontsize: int = 8, count_label_fontsize: int = 8, filename: str = 'upset_plot') None
- cap_intersection_ylim: bool = False
- count_label_fontsize: int = 8
- dict_colors: dict
- element_size: float | None = None
- figsize: list[float]
- filename: str = 'upset_plot'
- intersection_plot_elements: int = 6
- pct_label_fontsize: int = 8
- classmethod preprint_2026() UpsetPlotConfig[source]
~5 x 3.5 in plot-area variant for the 2026 preprint figures.
element_sizeis tuned empirically (withintersection_plot_elements/totals_plot_elements) so the upset grid renders ~5 x 3.5 in rather than the near-square default; the figure is saved tight-cropped.
- tighten_totals_gap: bool = False
- totals_gap_margin: float = 0.01
- totals_plot_elements: int = 2