mpl-presentation-styles
Presentation-quality matplotlib charts in one line.
Stop formatting charts for board meetings. Start presenting.
Install
pip install mpl-presentation-styles
Three ways to use it
1. Quick charts (zero config)
import mpl_presentation_styles as mps
mps.bar({"Q1": 2.5, "Q2": 3.1, "Q3": 2.8, "Q4": 3.6}, title="Revenue ($M)")
2. With your existing matplotlib code (recommended)
import mpl_presentation_styles as mps
import matplotlib.pyplot as plt
mps.apply_palette("boardroom")
# All your existing code just looks better
plt.bar(["Q1", "Q2", "Q3", "Q4"], [2.5, 3.1, 2.8, 3.6])
plt.title("Revenue ($M)")
plt.show()
If you specifically want matplotlib style names, plt.style.use("mps-boardroom")
is also supported in many environments, but apply_palette() is the most
reliable API across notebook runtimes.
3. Scoped theming
from mpl_presentation_styles import theme, bar
with theme("startup"):
bar(df, x="Region", y="Revenue", title="Q4 Revenue by Region")
# Previous style is automatically restored
Works with DataFrames
import pandas as pd
import mpl_presentation_styles as mps
df = pd.read_csv("sales.csv")
mps.bar(df, x="Region", y="Revenue", title="Revenue by Region")
mps.line(df, x="Month", y="Growth", title="Monthly Growth Trend")
mps.pie(df, x="Category", y="Share", title="Market Share")
Palettes
| Name | Style | Best For |
|---|---|---|
boardroom |
Navy/red professional | Board decks, executive summaries |
startup |
Purple/green modern | Pitch decks, investor updates |
classic |
Muted traditional | Academic papers, journal submissions |
dashboard |
High-contrast | KPI dashboards, monitoring |
print |
Grayscale | Print reports, black & white |
warm |
Amber/orange | Marketing, inviting presentations |
Smart defaults
- Auto-register themes: mpl-presentation-styles registers custom themes
automatically via a
.pthstartup hook, soplt.style.use("mps-boardroom")is available immediately after install — no explicit import required. - Auto-format values:
$1.2M,$450K,$3,750 - DataFrame-native: Pass column names directly
- Auto-detect environment: Saves to
/mnt/data/in notebooks,./locally - Spines removed: Clean, modern look by default
- 150 DPI: Presentation-ready resolution
Chart types
| Function | Type | DataFrame | Dict |
|---|---|---|---|
mps.bar() |
Vertical/horizontal bars | ✅ | ✅ |
mps.line() |
Trend lines with markers | ✅ | ✅ |
mps.pie() |
Pie charts with % labels | ✅ | ✅ |
mps.scatter() |
Scatter with annotations | ✅ | ✅ |
License
MIT
Metadata
Release files for mpl-chart-styles 1.0.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mpl_chart_styles-1.0.21.tar.gz | 26.8 kB | Without provenance | Details for mpl_chart_styles-1.0.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mpl_chart_styles-1.0.21-py3-none-any.whl | Python 3 | none | any | Details for mpl_chart_styles-1.0.21-py3-none-any.whl |
Total release size: 56.9 kB
Release files / mpl_chart_styles-1.0.21.tar.gz
| Download URL | mpl_chart_styles-1.0.21.tar.gz |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4b71924e0bb897a464c31411f3f06a4ad00c838b2ebc9d4420de4b49308734b
|
|
BLAKE2b-256 checksum How to use checksums |
8bb9fb5a79c714ec7f4b19ca9e7441cf890489efbe0429a14f9ea0e0af84f8a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / mpl_chart_styles-1.0.21-py3-none-any.whl
| Download URL | mpl_chart_styles-1.0.21-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
946d1afbc516204560187a2432b5822a53e87ee2f788903fd0aebb064942a6b9
|
|
BLAKE2b-256 checksum How to use checksums |
27a2229c8ccb39888b63b2683255752554bcc70c9bc1c4003e35858412740fba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for mpl-chart-styles 1.0.21
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.