Skip to content

Examples

These are the actual outputs of the scripts in examples/, embedded live. The interactive plots are fully interactive — hover for the quantile tooltips, pan, zoom, and toggle legends right on the page.

Self-contained

Each frame is a standalone HTML file. The inline-SVG and summary examples use no JavaScript and no plotting dependency at all.

Inline SVG sparklines — pavement.svg

Dependency-free <svg> sparks that inherit the surrounding text color and carry their quantile tooltips with pure CSS — no JavaScript. Hover the bins. This page also shows the tally and proportion column strips.

svg_demo.py · view standalone

Whole-dataframe summary — pavement.summary

One glanceable table over a mixed dataframe: a tally (distinct / duplicate / missing) paired with a distribution per column.

summary_demo.py · view standalone

DataFrame view — column profiles in the header

A table where each column header stacks the column name, a tally strip, and a distribution strip — a SQL-client–style preview of a result set with column statistics built right into the header. Numeric and date columns get a pavement spark; categorical columns get a proportion strip.

dataframe_view_demo.py · view standalone

The .pave accessor — pandas & polars

Importing pavement.pandas / pavement.polars registers a .pave accessor, so the summary and the column strips are a method away on any frame or series.

pandas_polars_demo.py · view standalone

Value formatting & box edges

How value_format controls hover text across backends, and how box edges read on binned plots versus rugs.

value_format_demo.py · view standalone

box_edges_demo.py · view standalone

Interactive — Plotly, Bokeh & HoloViews

The same pavements across every interactive backend: single rows, rugs, category-split rows, and scatters with pavement marginals. Hover for the quantile tooltips, pan, zoom, and toggle the legends.

interactive_demo.py · view standalone