plotlet v0.6.2

Extensions

Every artist in the plotlet-extensions catalog — 43 of them — rendered at build time from each module’s own demo. One import registers the whole catalog; copy a module to make it yours.

import plotlet.extensions

c.add_alluvial(…)

Categorical-state transitions over time: adjacent-layer flow ribbons (sankey for time series).

view source →

c.add_bland_altman(…)

Agreement plot: (a + b) / 2 vs (a − b) with bias and ±1.96 SD limits.

view source →

c.add_boxen(…)

["A","B","C","D"]

Letter-value plot (boxenplot): nested quantile boxes for big-sample distribution detail.

view source →

c.add_bubble_grid(…)

["control","drug A","drug B","drug C"]["GAPDH","ACTB","TP53","BRCA1","MYC","EGFR"]

Categorical dot matrix encoding two values per cell (size + color).

view source →

c.add_bump(…)

["Q1","Q2","Q3","Q4"]

Ranked categorical lines over a sequence of periods (rank 1 at the top).

view source →

c.add_calendar_heatmap(…)

GitHub-style daily contribution grid, weeks × weekdays.

view source →

c.add_calibration(…)

Reliability diagram: predicted vs observed probability in bins; diagonal = perfect calibration.

view source →

c.add_cleveland_dot(…)

["Python","JavaScript","TypeScript","Rust","Go","C++","Java","Ruby"]

Horizontal dot at each category — Cleveland's perception-tested alternative to barh.

view source →

c.add_confusion_matrix(…)

["cat","dog","bird","fish"]["cat","dog","bird","fish"]

Classifier evaluation heatmap: counts (or row-normalized rates) of true vs predicted class.

view source →

c.add_crossbar(…)

["A","B","C","D"]

Three horizontal lines (lo / mid / hi) per category — clean summary overlay over strips/swarms.

view source →

c.add_diverging_bar(…)

["Quality","Speed","Support","Price","Onboarding","Docs","Reliability","Mobile UX"]

Likert / score-vs-baseline bars going left or right of zero, colored by sign.

view source →

c.add_dumbbell(…)

["USA","UK","Germany","France","Japan","Brazil","India","China","Mexico","Indonesia"]

Categorical before/after: two dots connected by a line per row, color-coded by direction.

view source →

c.add_eventplot(…)

Vertical or horizontal tick marks per row, for spike rasters / event timelines.

view source →

c.add_forest(…)

Meta-analysis: per-study estimate + CI bar + square-by-weight, pooled diamond at the bottom.

view source →

c.add_funnel_plot(…)

Meta-analysis funnel: effect vs standard error with ±1.96·SE envelope to spot publication bias.

view source →

c.add_gene_arrow(…)

Directional rectangles with arrowheads, per strand — for genomics tracks.

view source →

c.add_horizon(…)

Banded compressed time-series strip; folds large y-ranges into N progressively-shaded layers.

view source →

c.add_barh(…)

["Python","JavaScript","TypeScript","Rust","Go","C++"]

`barh` for long category labels.

view source →

jointplot(…)

Scatter with marginal histograms on top and right — composition recipe.

from plotlet.extensions.jointplot import jointplot
view source →

c.add_km(…)

Kaplan-Meier survival + Greenwood CI band; log-rank helper for two-group comparison.

view source →

c.add_loess(…)

LOESS local-regression smoother via statsmodels lowess (degree 1 + robustifying iterations).

view source →

c.add_lollipop(…)

Stem-and-circle chart for sparse comparisons; optional mini-lollipop legend entry.

view source →

c.add_ma(…)

RNA-seq MA plot: log₂ fold change vs mean log expression, with significance thresholds.

view source →

c.add_manhattan(…)

GWAS scatter of −log₁₀(p) vs cumulative genomic position, chromosomes alternated by color.

view source →

c.add_mosaic(…)

Contingency-table proportional rectangles: row × col area = joint count, splits show conditional rates.

view source →

pair_plot(…)

EDA pair-plot: n × n grid of scatter + histogram cells, built via plotlet `grid()` composition.

from plotlet.extensions.pair_plot import pair_plot
view source →

c.add_parallel_coords(…)

Multivariate EDA: vertical axes per variable, one polyline per row, normalized scales.

view source →

pca_biplot(…)

PCA biplot: PC1 vs PC2 scatter with loading arrows. SVD-based via numpy.

from plotlet.extensions.pca_biplot import pca_biplot
view source →

c.add_percentile_band(…)

Median line plus filled percentile ribbon for repeated-measure data.

view source →

c.add_pr(…)

Precision-recall curve with trapezoidal AUPR; the imbalanced-classes twin of ROC.

view source →

c.add_pyramid(…)

["0–9","10–19","20–29","30–39","40–49","50–59","60–69","70–79","80+"]

Population pyramid: paired horizontal bars mirrored around x = 0 (left vs right group).

view source →

c.add_raincloud(…)

["control","drug A","drug B"]

Half-violin + box + jittered strip per category — distribution shape, summary, and individual observations all readable at once.

view source →

residual_diagnostics(…)

OLS diagnostic 4-panel (incl. Cook’s-distance contours) via scipy.stats.

from plotlet.extensions.residual_diagnostics import residual_diagnostics
view source →

c.add_roc(…)

ROC curve with trapezoidal AUC computed inline and appended to the legend label.

view source →

c.add_sales_funnel(…)

["Visited","Signed up","Activated","Purchased","Returned"]

Conversion funnel: centered horizontal bars narrowing top-to-bottom with auto-percent labels.

view source →

c.add_sankey(…)

Flows between nodes drawn as cubic-bezier ribbons; layers inferred via longest-path layering.

view source →

c.add_significance_brackets(…)

["control","drug A","drug B","drug C"]

Significance brackets over a boxplot/violin: '*'/'**'/'ns' annotations with bracket lines.

view source →

c.add_slope_chart(…)

Paired before / after lines with end-point dots and optional row labels.

view source →

c.add_split_violin(…)

["wild-type","+drug","knockout","rescue"]

Split violin: left half group A, right half group B per category.

view source →

c.add_text_label(…)

Data-anchored text via plotlet's bundled DejaVu Sans, on the foreground layer.

view source →

c.add_upset(…)

Intersection-size bars over a dot matrix (Venn replacement for 4+ sets).

view source →

c.add_volcano(…)

RNA-seq volcano: log₂-FC vs −log₁₀(p), colored by direction, with top-hit labels.

view source →

c.add_waterfall(…)

["Revenue","COGS","Op-Ex","Tax","Other","Total"]

Successive ± contributions to a running total, with dashed connectors and final total bar.

view source →