Skip to main content

easy_volcano

Fully customisable, publication-ready volcano plots in one line of Python.

Romain JSB Lannes, PhD

Volcano plots are used in almost every RNA-seq analysis, yet in Python there are few alternatives to writing custom plotting code each time. easy_volcano draws a clean volcano plot in one line, and lets you customise every part of it when you need to: colours, labels, legend, extra lines, and any matplotlib option.

Example figure: Volcano plot of the airway dataset with glucocorticoid targets and collagens highlighted

Installation

easy_volcano is on PyPI.

pip install easy_volcano

Quick start

import pandas as pd
import matplotlib.pyplot as plt
import easy_volcano as ev

df = pd.read_csv("data/easy_volcano_airway_example.tsv", sep="\t")   # a DESeq2 results table
fig, ax = ev.plot_volcano(df)
plt.show()

By default easy_volcano uses the DESeq2 column names (log2FoldChange and padj). For other tools, pass the column names with x= and y=, for example x="logFC", y="adj.P.Val" for limma.

Almost endless customisation

Most customisation goes through highlights, a list of (which genes, how to draw them) pairs:

ev.plot_volcano(df, highlights=[(["FKBP5", "PER1"], {"color": "purple", "size": 200, "label": "my genes"})])
  • Which genes: a list of gene names, a rule such as lambda d: d["baseMean"] < 100, or a True/False column.
  • How to draw them: any option of matplotlib's scatter (color, size, marker, edgecolors, ...), plus label to add the group to the legend and label_gene to write the gene names on the plot.

See How highlights work and the {...} pattern below for the full explanation.

Examples

All examples use the airway RNA-seq dataset (DESeq2 results, the same dataset as the EnhancedVolcano vignette), included in data/easy_volcano_airway_example.tsv. The same code is available as a notebook: data/Examples_notebook.ipynb.

Contents

  1. Simple plot
  2. Customisation
  3. Going further
  4. All options

Simple plot

Load the data

import easy_volcano as ev
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from pathlib import Path

df = pd.read_csv("data/easy_volcano_airway_example.tsv", sep='\t')
df["gene_name"] = df.index

Default plot

By default the 5 most over- and under-expressed genes are labelled. The adjusted p-value cutoff is 1e-2 by default; airway has a very strong signal, so we use 1e-6 here.

(fig, ax) = ev.plot_volcano(df, y_thr=10**(-6), title="airway")
plt.show()

default

Customisation

Legend position, label column and number of labels

  • legend_loc has three presets: "top", "bottom" and "right". More options are available through legend_kwargs.
  • Labels use the index by default, but any column can be used instead with label_column="gene_name".
  • label_top labels the top X up- and down-regulated genes.
(fig, ax) = ev.plot_volcano(df, y_thr=10**(-6),  title="airway",
                            subtitle="legend on the right, top 10 labels", legend_loc='right', width=8, 
                            label_column="gene_name", label_top = 10)
plt.show()

legend right label top

Thresholds and custom lines

Changing a threshold moves both the threshold lines and the colours. You can also add your own horizontal or vertical lines by passing a dictionary, or a list of dictionaries, with the position (x or y) plus any matplotlib line option. For h_lines, y is a p-value (here 1e-20, drawn at 20 on the -log10 axis).

(fig, ax) = ev.plot_volcano(df, y_thr=10**(-6),  title="airway",
                            subtitle="custom thresholds and extra lines", x_thr=1,
                            h_lines={"y": 10**(-20), "linewidth":5, "color":"red", "linestyle" :"-"},
                            v_lines = [{"x": 2, "color":"pink"},
                                        {"x": -3, "linestyle" : "dotted", "color": "darkgreen"}])
plt.show()

custom lines

Default colours and marker

Every gene gets one of six colours from the two thresholds (p = adjusted p-value, lfc = log2 fold change):

Parameter Genes Default
color_up_sig p ≤ y_thr and lfc ≥ x_thr (legend: "Overexpressed") "#D7191C"
color_down_sig p ≤ y_thr and lfc ≤ -x_thr (legend: "Underexpressed") "#2C7BB6"
color_sig p ≤ y_thr but |lfc| < x_thr "darkgrey"
color_up p > y_thr but lfc ≥ x_thr "#FDAE61"
color_down p > y_thr but lfc ≤ -x_thr "#ABD9E9"
color_ns neither threshold "lightgrey"

Colours can be any matplotlib colour: a name ("purple"), a hex code ("#762A83") or an RGB tuple. marker, size and alpha change the shape, size and transparency of every point.

(fig, ax) = ev.plot_volcano(df, y_thr=1e-6, title="airway", subtitle="custom colours and marker",
                            color_up_sig="#762A83", color_down_sig="#1B7837",
                            color_up="#C2A5CF", color_down="#ACD39E",
                            color_sig="#878787", color_ns="#E0E0E0",
                            marker="^", size=60, alpha=0.8)
plt.show()

custom colours

How highlights work

highlights is a list of pairs. Each pair says which genes and how to draw them:

highlights=[
    (which_genes, how_to_draw),
    (which_genes, how_to_draw),
]

For example, "draw FKBP5 and PER1 in red, bigger":

highlights=[ (["FKBP5", "PER1"], {"color": "red", "size": 200}) ]
#             └─ which genes ──┘  └──────── how to draw ───────┘

Three rules to remember:

  1. Pairs are applied in order, and the last one wins. If a gene is matched by two pairs, the later pair's style is used (only for the options it sets; the rest are kept from earlier pairs).
  2. Highlighted genes are drawn on top of all other points, so they are never hidden.
  3. You only change what you write. Anything you don't set keeps its default (colour, size, transparency, ...).
Which genes: three ways to select
You write Meaning Example
a list of names these genes ["FKBP5", "PER1"]
a rule: lambda d: ... every gene for which the rule is true lambda d: d["baseMean"] < 100
a True/False column the genes marked True df["padj"] < 1e-10
  • Names are looked up in the index of your table, or in label_column if you set it (e.g. label_column="gene_name" to use symbols while your index holds Ensembl IDs). Even a single gene goes in a list: ["FKBP5"], not "FKBP5".
  • A rule reads as: "given the table d, keep the rows where ...". d is your table (rows with missing values removed), so you can use any of its columns. Combine conditions with & (and), | (or), ~ (not), with each condition in parentheses: lambda d: (d["baseMean"] > 1000) & (d["log2FoldChange"] > 2). For text, use pandas string methods: lambda d: d.index.str.startswith("COL").

Tip: check a rule before plotting. A rule is just a function, so you can call it on your table and count how many genes it selects:

rule = lambda d: (d["baseMean"] > 1000) & (d["padj"] < 1e-30)
print(rule(df).sum(), "genes selected")
df[rule(df)].head()

Output:

79 genes selected

The {...} pattern: options passed to matplotlib

Many options in easy_volcano are a dictionary ({"name": value, ...}), for example the how to draw part of a highlight, label_format, legend_kwargs or each line in h_lines. A dictionary is just a bundle of named options. easy_volcano hands it to the matplotlib function that draws that element, exactly as if you had typed the options yourself:

{"color": "red", "marker": "D", "edgecolors": "black"}
# is passed on as
ax.scatter(..., color="red", marker="D", edgecolors="black")

This is why the possibilities are not limited to what easy_volcano lists: any option the matplotlib function accepts works. When you want something new, look up the matplotlib function in the table below, find the option, and put it in the dictionary.

Option in easy_volcano Passed to matplotlib's Useful keys (examples)
highlight style (genes, {...}) ax.scatter color, size, alpha, marker, edgecolors, linewidths, zorder
any extra keyword, e.g. plot_volcano(df, edgecolors="none") ax.scatter, for every point same as above
label_format, label_genes_format, label_gene={...} ax.text fontsize, fontweight, fontstyle, color
legend_kwargs ax.legend fontsize, frameon, title, ncols
each line in h_lines / v_lines ax.axhline / ax.axvline color, linestyle, linewidth, alpha

A few things easy_volcano adds on top:

  • Short names in highlight styles: size means matplotlib's s, color means c, and a means alpha. Use one form or the other, not both.
  • Extra keys in highlight styles, handled by easy_volcano and not passed to matplotlib:
    • "label": "my genes" adds the group to the legend,
    • "label_gene": True writes the gene names on the plot; a dictionary ({"fontweight": "bold"}) also styles those names, like label_format.
  • Position keys are reserved: in text formats, x, y, s, position and text are set by easy_volcano; in h_lines/v_lines, y/x is the position (for h_lines, y is a p-value).

Custom colours with highlights

Select genes with a rule (a lambda on the table) or directly with a list of index names.

  • Adding a label key adds the group to the legend.
  • Setting label_gene adds the gene names to the plot.

Here shows that ribosomal protein gene are not DE

(fig, ax) = ev.plot_volcano(df, y_thr=10**(-6), width=6, title="airway", subtitle="ribosomal genes and two targets", legend_loc='bottom',
                          highlights= [(lambda d: d.index.str.startswith("RPL"),
                                        {"color": "purple", "size": 80, "label": 'ribosomal gene'}), 
                                        (["GPX3", "STEAP2"] , {"color": "green", "label_gene": "True", "label": 'target' })
                                      ]
                           )
plt.show()

highlights

Highlight low expression genes

A rule can use any column of the table, here baseMean.

One could do the opposite and fade/ hide those.

(fig, ax) = ev.plot_volcano(df, y_thr=10**(-6), width=6, title="airway", subtitle="highlight low expression genes", legend_loc='bottom',
                          highlights= [(lambda d: d["baseMean"] < 100, {"alpha": 1, "color":"black", "label": "low expression" })]
                           )
plt.show()

low expression

Spotlight

no_default=True turns off the default colouring, so only your genes stand out.

(fig, ax) = ev.plot_volcano(df, y_thr=10**(-6), width=6, title="airway", subtitle="spotlight",
                            no_default=True, label_top=None,
                          highlights= [(["GPX3", "STEAP2"] , {"color": "green", "label_gene": "True", "label": 'target' })]
                           )
plt.show()

spotlight

Going further

Several panels and clipping p-values

  • Pass ax= to draw into an existing figure, here two panels side by side.
  • clip_pval (right) avoids a squashed plot when some p-values are extremely small or zero.
fig, axes = plt.subplots(ncols=2)
(fig, ax) = ev.plot_volcano(df, ax=axes[0], y_thr=10**(-6), width=6, title="airway", subtitle="without clipping",
                            no_default=True, label_top=None, font_size_text_summary=12,
                          highlights= [(["GPX3", "STEAP2"] , {"color": "green", "label_gene": "True", "label": 'target' })]
                           )
(fig, ax) = ev.plot_volcano(df, ax=axes[1], y_thr=10**(-6), width=6, title="airway", subtitle="clip_pval=1e-50",
                            no_default=True, label_top=None, clip_pval=10**(-50),font_size_text_summary=12,
                          highlights= [(["GPX3", "STEAP2"] , {"color": "green", "label_gene": "True", "label": 'target' })]
                           )
plt.show()

clip pval panels

Master example

Airway cells were treated with dexamethasone, a glucocorticoid. In one call:

  • lowly expressed genes are faded (a rule on baseMean),
  • collagens are picked by a rule on the gene name,
  • canonical glucocorticoid targets are given as a plain list, drawn bigger with an outline, and labelled in bold,
  • title, subtitle and legend are stacked on top without overlapping.

Highlights are applied in order: a gene matched by several layers keeps the last one.

gc_targets = ["FKBP5", "TSC22D3", "PER1", "KLF15", "ZBTB16",
              "DUSP1", "CRISPLD2", "KLF9", "ERRFI1"]

fig, ax = ev.plot_volcano(
    df, y_thr=1e-6, label_top=None, label_avoid_self=True,
    title="Airway: dexamethasone",
    subtitle="glucocorticoid targets and collagens",
    legend_loc="top", legend_nrows=2,
    highlights=[
        # 1. fade lowly expressed genes
        (lambda d: d["baseMean"] < 50, {"alpha": 0.1}),
        # 2. a gene family picked by a rule on the index
        (lambda d: d.index.str.startswith("COL"),
         {"color": "#1b9e77", "size": 60, "label": "collagens"}),
        # 3. a hand-picked list, outlined and labelled in bold
        (gc_targets,
         {"color": "#7b3294", "size": 250, "edgecolors": "black", "linewidths": 1,
          "label": "glucocorticoid targets", "label_gene": {"fontweight": "bold"}}),
    ])
plt.show()

hero

Label the genes you care about

label_top labels the most significant genes on each side; label_genes adds your own. label_genes_format styles only your genes (any matplotlib text option), and label_genes_line draws a line from a label to its point when the label had to move.

fig, ax = ev.plot_volcano(
    df, y_thr=1e-6, label_top=3,
    label_genes=["FKBP5", "KLF15", "PER1", "CXCL12"],
    label_genes_format={"fontweight": "bold", "color": "#7b3294"},
    label_genes_line=True, label_min_arrow_len=5,
    subtitle="top 3 per side + your genes, styled")
plt.show()

label genes

Highlight with a rule over any columns

A selector can be a function of the table: here, highly expressed and very significant genes. The style dict accepts any ax.scatter argument (marker, edgecolors, linewidths, ...).

fig, ax = ev.plot_volcano(
    df, y_thr=1e-6, label_top=None,
    subtitle="rule over several columns", legend_nrows=2,
    highlights=[
        (lambda d: (d["baseMean"] > 1000) & (d["padj"] < 1e-30),
         {"marker": "D", "size": 50, "color": "gold", "edgecolors": "black",
          "label": "baseMean > 1000 and padj < 1e-30"}),
    ])
plt.show()

rule highlight

Layered highlights: later wins

All collagens are green; collagens that also change more than 2-fold are then restyled by a second layer (darker, bigger, outlined and labelled).

fig, ax = ev.plot_volcano(
    df, y_thr=1e-6, label_top=None,
    subtitle="layered highlights: later wins", legend_nrows=2,
    highlights=[
        (lambda d: d.index.str.startswith("COL"),
         {"color": "#1b9e77", "size": 60, "label": "collagens"}),
        (lambda d: d.index.str.startswith("COL") & (d["log2FoldChange"].abs() > 1),
         {"color": "#0b5d44", "size": 200, "edgecolors": "black",
          "label": "collagens |LFC| > 1", "label_gene": True}),
    ])
plt.show()

layers

Keep going with matplotlib

plot_volcano returns (fig, ax), so anything matplotlib can do still works afterwards: here a shaded region and an annotation with an arrow.

fig, ax = ev.plot_volcano(df, y_thr=1e-6, label_top=None,
                          subtitle="returns (fig, ax): keep going with matplotlib")
xlim = ax.get_xlim()
ax.axvspan(2, xlim[1], color="#D7191C", alpha=0.08, zorder=0)   # shade a region
ax.set_xlim(xlim)                                                # keep the original limits
gene = "ZBTB16"
xy = (df.loc[gene, "log2FoldChange"], -np.log10(df.loc[gene, "padj"]))
ax.annotate(f"{gene}\nstrongest induction", xy=xy, xytext=(xy[0] - 2.5, xy[1] + 40),
            arrowprops=dict(arrowstyle="->"), fontsize=11)
plt.show()

matplotlib after

Export for Illustrator

Text is saved as editable text in PDF. With rasterize=True the points become an image while text, axes and lines stay vector, so the file stays small and still opens quickly in Illustrator.

for raster in (False, True):
    path = Path(f"volcano_rasterize_{raster}.pdf")
    fig, ax = ev.plot_volcano(df, y_thr=1e-6, rasterize=raster, savefig=path)
    plt.close(fig)
    print(f"rasterize={raster}: {path.stat().st_size / 1e3:.0f} kB")

Output:

rasterize=False: 2625 kB
rasterize=True: 57 kB

Not supported yet

  • density plots
  • continuous colour scales
  • boxed labels

All options

All parameters of plot_volcano, from its docstring (also available with help(ev.plot_volcano)):

Draw a volcano plot from a differential-expression results table.

Each gene is a point: log2 fold change on the x-axis, -log10 of the adjusted
p-value on the y-axis. Points are first coloured by significance category
(see "Default colours"), then any `highlights` are drawn on top of them.
Rows with a missing value in the `x` or `y` column are dropped.

Example
-------
>>> fig, ax = plot_volcano(df, y_thr=1e-6, label_top=5,
...     highlights=[(["FKBP5", "PER1"], {"color": "purple", "size": 200, "label": "my genes"})])

Parameters
----------
df : pandas.DataFrame
    Results table with one row per gene (e.g. DESeq2, edgeR or limma output).
    Gene names are read from the index, or from `label_column`.

Data and thresholds
~~~~~~~~~~~~~~~~~~~
x : str, default "log2FoldChange"
    Column with the log2 fold change (x-axis). edgeR and limma: "logFC".
y : str, default "padj"
    Column with the adjusted p-value, plotted as -log10 (y-axis).
    edgeR: "FDR"; limma: "adj.P.Val".
x_thr : float or None, default 1
    Absolute log2 fold-change threshold. Used for the default colours, the
    vertical threshold lines, the summary and `label_top`.
y_thr : float or None, default 0.01
    Adjusted p-value threshold (a p-value, not its -log10). Used for the
    default colours, the horizontal threshold line and the summary.
    If `x_thr` or `y_thr` is None, the default colouring is turned off.
clip_pval : float or None, default None
    If set (strictly between 0 and 1), every p-value below it is raised to it,
    so a few extreme genes do not squash the rest of the plot.
    Takes priority over `pval_floor`.
pval_floor : bool, default False
    Where p-values of exactly 0 are drawn (log10(0) is undefined).
    False: at the smallest non-zero p-value of the table.
    True: at the smallest positive float (about 1e-308), i.e. far above the rest.

Default colours
~~~~~~~~~~~~~~~
Each gene falls in one category, from its p-value (p, column `y`) and its
log2 fold change (lfc, column `x`):

color_up_sig : str, default "#D7191C"
    p <= y_thr and lfc >= x_thr. Shown in the legend as "Overexpressed".
color_down_sig : str, default "#2C7BB6"
    p <= y_thr and lfc <= -x_thr. Shown in the legend as "Underexpressed".
color_sig : str, default "darkgrey"
    p <= y_thr but |lfc| < x_thr.
color_up : str, default "#FDAE61"
    p > y_thr but lfc >= x_thr.
color_down : str, default "#ABD9E9"
    p > y_thr but lfc <= -x_thr.
color_ns : str, default "lightgrey"
    p > y_thr and |lfc| < x_thr.
no_default : bool, default False
    Turn the default colouring off: every point gets `color_base`.
    Combine with `highlights` for a "spotlight" plot.

Points
~~~~~~
color_base : str, default "grey"
    Colour of points that no category or highlight colours.
size : float, default 100
    Point size (matplotlib's `s`, an area in points squared).
marker : str, default "."
    Point shape: any matplotlib marker ("o", "D", "^", ...).
alpha : float, default 0.55
    Point transparency, from 0 (invisible) to 1 (opaque).
rasterize : bool, default False
    When saving to PDF or SVG, draw the points as an image while text, axes
    and lines stay vector: much smaller files that open quickly in
    Illustrator. Overrides any "rasterized" set in `highlights`.
**scatter_kwargs
    Any other keyword is passed to matplotlib's `ax.scatter` for every point,
    e.g. edgecolors="none" or linewidths=0.

Highlights
~~~~~~~~~~
highlights : list of (selector, style) pairs, default None
    Restyle chosen genes. Highlighted genes are drawn on top of all other
    points. Pairs are applied in order: when a gene matches several pairs,
    the later pair wins for the options it sets.

    selector (which genes), one of:
      - a list, tuple or set of names, matched against the index, or against
        `label_column` if set. A single gene is still a list: ["FKBP5"].
      - a function of the table, e.g. lambda d: d["baseMean"] < 100.
        `d` is `df` without the NA rows, so any column can be used.
      - a boolean pandas Series indexed like `df`.

    style (how to draw them): a dict of `ax.scatter` options ("color", "size",
    "alpha", "marker", "edgecolors", "linewidths", "zorder", ...). "color",
    "size" and "a" are short for matplotlib's "c", "s" and "alpha".
    Two extra keys:
      - "label": str, adds the group to the legend.
      - "label_gene": True to write the gene names on the plot, or a dict of
        text options (like `label_format`) to also style those names.

    Example: [(lambda d: d.index.str.startswith("COL"),
               {"color": "green", "size": 150, "label": "collagens"})]

Gene labels
~~~~~~~~~~~
Labels are positioned with adjustText to limit overlaps. Each gene is labelled
once, with priority: highlight "label_gene" > `label_genes` > `label_top`.

label_top : int or None, default 5
    Label the N genes with the smallest p-value on each side (lfc > x_thr and
    lfc < -x_thr), so up to 2 * N labels. None: no automatic labels.
label_genes : str or list of str, default None
    Genes to label, matched against the index or `label_column`.
    Names that are not found are reported in a warning.
label_column : str or None, default None
    Column holding the gene names to use, in labels and in name selectors,
    instead of the index (e.g. "gene_name" when the index holds Ensembl IDs).
label_format : dict, default {"fontsize": 10, "fontstyle": "normal", "ha": "center", "va": "center"}
    Text options for all labels (matplotlib's `ax.text`), merged on the default.
    The keys "x", "y", "s", "position" and "text" are reserved.
label_genes_format : dict or None, default None
    Text options applied on top of `label_format` to the `label_genes` only,
    e.g. {"fontweight": "bold", "color": "purple"}.
label_genes_line : bool, default False
    Draw a line between each label and its point when the label was moved
    further than `label_min_arrow_len` (applies to all labels).
label_min_arrow_len : float, default 100
    Shortest line drawn by `label_genes_line`, in pixels. With the default,
    most lines are too short to be drawn: use about 5 to see them.
label_avoid_self : bool, default False
    Also push each label away from its own point.

Lines and grid
~~~~~~~~~~~~~~
show_thresholds_line : bool, default True
    Draw the threshold lines at `y_thr` and at -`x_thr` and +`x_thr`.
line_format_default : dict, default {"color": "black", "linestyle": "--"}
    Style of the threshold lines (matplotlib's `ax.axhline` / `ax.axvline`
    options), merged on the default.
h_lines : dict or list of dict, default None
    Extra horizontal lines. Each dict needs "y", a p-value (drawn at
    -log10(y)), plus any line option, e.g. {"y": 1e-20, "color": "red"}.
    Black dashed by default.
v_lines : dict or list of dict, default None
    Extra vertical lines. Each dict needs "x", a log2 fold change, plus any
    line option, e.g. {"x": 2, "linestyle": ":"}. Black dashed by default.
display_grid : bool, default True
    Draw major and minor grid lines.

Title, legend and summary
~~~~~~~~~~~~~~~~~~~~~~~~~
The elements around the plot are stacked so they never overlap. Above the
plot, from the axes up: legend (if legend_loc="top"), subtitle, title. Below
the plot, from the x-axis label down: legend (if legend_loc="bottom"),
summary. Paddings are gaps in points, so they do not depend on figure size.

title : str, default ""
    Plot title. Not drawn if empty.
title_fontsize : float, default 28
title_pad : float, default 15
    Gap (points) between the title and the element below it.
subtitle : str, default ""
    Text between the title and the plot. Not drawn if empty.
subtitle_fontsize : float, default 18
subtitle_pad : float, default 15
    Gap (points) between the subtitle and the element below it.
xlabel : str, default "$Log_{2}$ fold change"
ylabel : str, default "$-Log_{10}$ adj.P"
    Axis labels. Text between $ signs is rendered as math.
show_legend : bool, default True
    Draw the legend. False is the same as legend_loc=None.
legend_loc : {"bottom", "top", "right"} or None, default "bottom"
    Legend position. None: no legend. Entries are "Overexpressed",
    "Underexpressed" and every highlight with a "label"; with no entries,
    no legend is drawn.
legend_nrows : int or None, default None
    Number of legend rows. None: one row for "top" and "bottom", one column
    for "right". An explicit "ncols" in `legend_kwargs` wins.
legend_kwargs : dict or None, default None
    Options passed to matplotlib's `ax.legend`, applied on top of the preset,
    e.g. {"fontsize": 12, "frameon": False, "title": "groups"}.
padding_legend : float, default 15
    Gap (points) between the legend and the plot ("top") or the x-axis
    label ("bottom"). Not used for "right".
show_text_summary : bool, default True
    Write "up N; down N; ns N" under the plot: genes with p <= y_thr and
    lfc >= x_thr, genes with p <= y_thr and lfc <= -x_thr, and all others.
    Needs both `x_thr` and `y_thr`.
font_size_text_summary : float, default 16
padding_text_summary : float, default 15
    Gap (points) between the summary and the element above it.

Figure and output
~~~~~~~~~~~~~~~~~
ax : matplotlib Axes or None, default None
    Draw into this existing Axes, e.g. one panel of plt.subplots(); `width`
    and `height` are then ignored. None: create a new figure.
width : float, default 6
    Figure width in inches.
height : float, default 6
    Figure height in inches.
    Tick and axis-label font sizes follow the size of the plot.
color_bg : str, default "white"
    Background colour of the plot area.
savefig : str or path, default None
    Save the figure to this file (format from the extension: .png, .pdf,
    .svg, ...), cropped to its content. Text stays editable in PDF files.

Returns
-------
fig, ax : matplotlib Figure and Axes
    Keep customising them with matplotlib (annotations, shading, limits, ...).

Raises
------
ValueError
    If no row is left after dropping missing values, if no p-value is above 0
    (is `y` already -log10 transformed?), if `clip_pval` is not between 0 and 1,
    or if `legend_loc` is not one of the presets.

Metadata

Release files for easy-volcano 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easy-volcano 0.1.0
File Size Uploaded Provenance Actions
easy_volcano-0.1.0.tar.gz 38.5 kB With provenance Details for easy_volcano-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for easy-volcano 0.1.0
File Interpreter ABI Platform Actions
easy_volcano-0.1.0-py3-none-any.whl Python 3 none any Details for easy_volcano-0.1.0-py3-none-any.whl

Total release size: 61.8 kB

Release files / easy_volcano-0.1.0.tar.gz

Download URL easy_volcano-0.1.0.tar.gz
Size 38.5 kB
Tags Source
SHA-256 checksum
How to use checksums
86c6b4ba698bcac141b175f7e365bbce10cd7c6ef8e2ce5a771d9f5fcd3788b1
BLAKE2b-256 checksum
How to use checksums
1d6c63e864fb263ed812bc6eca8bbbe76b208d6accf35111becb3f9b082fcd9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / easy_volcano-0.1.0-py3-none-any.whl

Download URL easy_volcano-0.1.0-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
730d20e0a95a9274ff773965dd881c70ebe13c8a6b14b6de5d595bed61e0f67b
BLAKE2b-256 checksum
How to use checksums
d34d27e4f3f8829fd28a523833ea943a3f4d4d54eed5c00ba0c4d2eacdb29788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for easy-volcano 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for easy_volcano-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page