Skip to main content

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

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
fig, 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(fig, 'figure.pdf')

Features

Base Plotting Functions

  • scatterplot() - Scatter plots with flexible styling
  • barplot() - Bar plots with error bars and grouping

Advanced Functions

  • venn() - 2-way and 3-way Venn diagrams
  • upsetplot() - UpSet plots for visualizing set intersections

Theming

  • Pastel color palettes optimized for publications
  • Customizable matplotlib styles
  • Consistent styling across all plots

Documentation

Full documentation is available at jorgebotas.github.io/publiplots

Development Status

PubliPlots is currently in active development (v0.1.0). The API may change in future releases.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

publiplots-0.4.0.tar.gz (555.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

publiplots-0.4.0-py3-none-any.whl (565.5 kB view details)

Uploaded Python 3

File details

Details for the file publiplots-0.4.0.tar.gz.

File metadata

  • Download URL: publiplots-0.4.0.tar.gz
  • Upload date:
  • Size: 555.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for publiplots-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a053445e44cffcd6083792bd9de9138cb886bcfdfc32642796911d815b099f5d
MD5 387cd531568637bb2fffead3f666db4c
BLAKE2b-256 35d4839737752043766eb92a0f4b3c2e863c0a504a6063661fd8f1a1ba0a49fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for publiplots-0.4.0.tar.gz:

Publisher: publish.yml on jorgebotas/publiplots

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file publiplots-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: publiplots-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 565.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for publiplots-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72c5018ed96166f7a1afd5bd9cfac4e54a5527234c51bcc92cdfbf6c0734faae
MD5 562fbf24e634021ab16ba9365c3fdeff
BLAKE2b-256 2e7b66429f5a42d3b60805dad928d142ce5ff18abe16470eb9f60903fbf29d0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for publiplots-0.4.0-py3-none-any.whl:

Publisher: publish.yml on jorgebotas/publiplots

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page