Publication-ready plotting with a clean, modular API
Project description
PubliPlots
Publication-ready plots
Overview
PubliPlots is a Python visualization library that provides beautiful, publication-ready plots with a seaborn-like API. It focuses on:
- Beautiful defaults: Carefully designed pastel color palettes and styles
- Intuitive API: Follows seaborn conventions for ease of use
- Modular design: Compose complex visualizations from simple building blocks
- Highly configurable: Extensive customization while maintaining sensible defaults
- Publication-ready: Optimized for scientific publications and presentations
[!IMPORTANT] Documentation: Full documentation is available at jorgebotas.github.io/publiplots
Gallery
For interactive examples, check out the examples.ipynb notebook.
Installation
From PyPI
pip install publiplots
Or if you are using uv for Python environment management:
uv pip install publiplots
From source (development)
git clone https://github.com/jorgebotas/publiplots.git
cd publiplots
pip install -e .
Development with uv and Jupyter
If you're using uv for Python environment management and want to use the package in Jupyter notebooks:
# Clone the repository
git clone https://github.com/jorgebotas/publiplots.git
cd publiplots
# Create a new uv environment with Python 3.11 (or your preferred version)
uv venv --python 3.11
# Activate the environment
source .venv/bin/activate # On Linux/macOS
# or
.venv\Scripts\activate # On Windows
# Install the package in editable mode with all dependencies
uv pip install -e .
# Install ipykernel to make the environment available in Jupyter
uv pip install ipykernel
# Register the environment as a Jupyter kernel
python -m ipykernel install --user --name=publiplots --display-name="Python (publiplots)"
Now you can select the "Python (publiplots)" kernel in Jupyter Lab or Jupyter Notebook and import publiplots:
import publiplots as pp
Quick Start
import publiplots as pp
import pandas as pd
# Apply publication style globally
pp.set_publication_style()
# Create a scatter plot
ax = pp.scatterplot(
data=df,
x='measurement_a',
y='measurement_b',
hue='condition',
palette=pp.color_palette('pastel', n_colors=3)
)
# Save with publication-ready settings
pp.savefig('figure.pdf')
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
Citation
If you use PubliPlots in your research, please cite:
Botas, J. (2025). PubliPlots: Publication-ready plotting for Python.
GitHub: https://github.com/jorgebotas/publiplots
License
MIT License - see LICENSE file for details.
Author
Jorge Botas (@jorgebotas)
Acknowledgments
PubliPlots builds upon excellent work from the Python visualization community:
- ggvenn by Yan Linlin - The Venn diagram implementation (2-5 sets) is based on the geometry from this R package
- UpSetPlot by Joel Nothman - The UpSet plot implementation is inspired by concepts from this library (BSD-3-Clause license)
- matplotlib - The foundational plotting library that powers PubliPlots
- seaborn - Inspiration for API design and color palettes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file publiplots-0.8.3.tar.gz.
File metadata
- Download URL: publiplots-0.8.3.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eea213c0a96729b425aee32abfa08486da9d64245ec03b0f572f3c24dab52c9d
|
|
| MD5 |
3b4c142076ff002136ef9b4af4ca5476
|
|
| BLAKE2b-256 |
9c36d5e702159be2b70b6f7b487f02b5dfadd882d4960a7ceee5c568bb977637
|
Provenance
The following attestation bundles were made for publiplots-0.8.3.tar.gz:
Publisher:
publish.yml on jorgebotas/publiplots
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
publiplots-0.8.3.tar.gz -
Subject digest:
eea213c0a96729b425aee32abfa08486da9d64245ec03b0f572f3c24dab52c9d - Sigstore transparency entry: 1437698161
- Sigstore integration time:
-
Permalink:
jorgebotas/publiplots@98db62f8755d0e51bdd0f88d4762a84f42a62515 -
Branch / Tag:
refs/tags/v0.8.3 - Owner: https://github.com/jorgebotas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@98db62f8755d0e51bdd0f88d4762a84f42a62515 -
Trigger Event:
release
-
Statement type:
File details
Details for the file publiplots-0.8.3-py3-none-any.whl.
File metadata
- Download URL: publiplots-0.8.3-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30511bc3443d3f1e18cd2641569394df80c6d16482e736222f6ee083258e68a8
|
|
| MD5 |
fbdff2d311996b082c18264ae7030f7c
|
|
| BLAKE2b-256 |
adc40eebc8ee2a06abcd5bce64be6841957b419fa51212148f4dfef87254ee12
|
Provenance
The following attestation bundles were made for publiplots-0.8.3-py3-none-any.whl:
Publisher:
publish.yml on jorgebotas/publiplots
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
publiplots-0.8.3-py3-none-any.whl -
Subject digest:
30511bc3443d3f1e18cd2641569394df80c6d16482e736222f6ee083258e68a8 - Sigstore transparency entry: 1437698166
- Sigstore integration time:
-
Permalink:
jorgebotas/publiplots@98db62f8755d0e51bdd0f88d4762a84f42a62515 -
Branch / Tag:
refs/tags/v0.8.3 - Owner: https://github.com/jorgebotas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@98db62f8755d0e51bdd0f88d4762a84f42a62515 -
Trigger Event:
release
-
Statement type: