omicverse.pl.venn

omicverse.pl.venn(sets={}, out='./', palette='bgrc', ax=False, ext='png', dpi=300, fontsize=3.5, bbox_to_anchor=(0.5, 0.99), nc=2, cs=4)[source]

Create a Venn diagram to visualize set overlaps.

Parameters:
  • sets (dict) – Dictionary mapping set names to Python sets.

  • out (str) – Output directory for saved figure.

  • palette (str or list) – Color palette passed to backend venn renderer.

  • ax (matplotlib.axes.Axes or bool) – Existing axes; if False a new figure/axes is created.

  • ext (str) – Output file extension.

  • dpi (int) – Resolution of saved image.

  • fontsize (float) – Font size for labels.

  • bbox_to_anchor (tuple) – Legend anchor position.

  • nc (int) – Number of legend columns.

  • cs (float) – Legend font size.

Returns:

Axes handle returned by caller/backend context.

Return type:

matplotlib.axes.Axes or bool