Welcome to GlyphX 2.2¶
GlyphX is a modern, SVG-first Python visualization library designed to replace Matplotlib, Seaborn, and Plotly — with a cleaner API, richer interactivity, and zero configuration required.
from glyphx import plot
plot([1, 2, 3], [4, 5, 6], kind="line", title="My First Chart")
# Auto-displays in Jupyter, opens browser in CLI — no .show() needed
# Full fluent API
from glyphx import Figure
from glyphx.series import LineSeries, BarSeries
fig = (
Figure(theme="dark")
.set_title("Revenue vs Costs")
.add(LineSeries(months, revenue, label="Revenue"))
.add(LineSeries(months, costs, label="Costs", linestyle="dashed"))
.tight_layout()
.share("report.html") # self-contained, zero-CDN output
)
# Or go straight from a DataFrame
import glyphx # registers df.glyphx accessor
df.glyphx.bar(x="month", y="revenue", hue="region", title="Revenue by Region")
# Full 3-D charts
from glyphx import Figure3D, plot3d
from glyphx.scatter3d import Scatter3DSeries
fig = Figure3D(title="3D Scatter", theme="dark")
fig.add(Scatter3DSeries(xs, ys, zs, c=zs, cmap="plasma"))
fig.show() # WebGL via Three.js; SVG fallback
Key Features¶
SVG-first rendering — crisp, scalable charts in every environment
Auto-display — no
plt.show()or.show()requiredMethod chaining — every mutating method returns
selfDataFrame accessor —
df.glyphx.bar(x=..., y=..., hue=...)Natural language charts —
from_prompt("bar chart of sales by region", df=df)Linked interactive brushing —
Shift+drag filters all charts on a pageSelf-contained shareable HTML —
fig.share()inlines all JS, works offline25+ chart types — including 3D scatter/surface/line/bar, raincloud, ECDF, treemap, and more
Automatic large-data downsampling — M4 + LTTB pipeline, voxel thinning, grid decimation, and face culling keep SVG fast on datasets with millions of points
9 perceptually-uniform colormaps — viridis, plasma, inferno, magma, cividis, and more
Statistical significance brackets — built-in, no third-party plugin needed
PPTX export — embed charts directly in PowerPoint slides
Full ARIA accessibility — WCAG 2.1 AA, keyboard navigation, screen-reader descriptions
Full type annotations —
py.typedmarker, mypy and pyright compatibleCLI tool —
glyphx plot data.csv --kind bar -o chart.html7 built-in themes — including a correct Okabe-Ito colorblind-safe palette
Per-series downsampling control —
threshold=Nandseries.last_downsample_info
Installation¶
pip install glyphx
# Optional extras
pip install "glyphx[pptx]" # PowerPoint export
pip install "glyphx[export]" # PNG / JPG raster export
pip install "glyphx[nlp]" # Natural language chart generation
Project Links¶
Contents¶
User Guide
- Getting Started
- Usage Guide
- Customization
- Advanced Features
- Interactive Brushing
- Synchronized Crosshair
- Self-Contained Shareable HTML
- 3-D Interactive Charts
- New 2-D Chart Types (v1.5+)
- Statistical Charts
- Financial Charts
- Hierarchical Charts
- Pie and Donut Charts
- Streaming / Real-Time
- Accessibility
- PPTX Export
- Violin Plots
- Seaborn-Style Composite Plots
- Large-Data Performance
- Large-Data Downsampling
- Examples
- Basic Charts
- New 2-D Chart Types
- 3-D Charts
- Themes
- Layout
- DataFrame Accessor
- Statistical Charts
- Financial Charts
- Streaming Data
- Downsampling Examples
- Gantt / Timeline Chart
- Stacked Bar Chart
- Bump Chart
- Sparklines
- AI Chart Recommendation
- Responsive Dark-Mode SVG
- Hierarchically Clustered Heatmap (Clustermap)
- Hue on Statistical Charts
- Vega-Lite JSON Export
- FacetGrid — Small Multiples
- Regression Plot
- Choropleth Map
- ScatterSeries — Per-Point Size Encoding
Reference
- API Reference
- glyphx.plot
- glyphx.plot3d
- glyphx.from_prompt
- Figure
- Figure3D
- Axes
- layout.grid
- SubplotGrid
- Core Series
- Statistical Series
- Financial Series
- Hierarchical Series
- Streaming
- Advanced 2-D Series
- 3-D Series
- Downsampling
- DataFrame Accessor
- Colormaps
- Accessibility
- Themes
- Utilities
- Projection (3-D)
- Additional Chart Types (v1.6+)
- FacetGrid
- Regression Plot
- Choropleth Map
- Clustermap
- Vega-Lite Export
- AI Recommendation