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: object

Aesthetics 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, ...])

preprint_2026()

~5 x 3.5 in plot-area variant for the 2026 preprint figures.

Attributes

__dataclass_fields__

__dataclass_params__

__match_args__

cap_intersection_ylim

count_label_fontsize

element_size

filename

intersection_plot_elements

pct_label_fontsize

tighten_totals_gap

totals_gap_margin

totals_plot_elements

figsize

dict_colors

__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_size is tuned empirically (with intersection_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