Skip to main content

plotting_utils

A Python package providing elegant wrappers around matplotlib and seaborn functions to make scientific plotting easier and more consistent.

Features

🎨 Color Palettes

  • Custom color schemes: ten_godisnot, darjeeling, fantastic_fox
  • Palette creation utilities: create_palette() for generating custom color schemes

📊 Plotting Functions

High-level plotting functions with sensible defaults:

  • Basic plots: scatter(), bar(), box(), strip(), violin()
  • Distribution plots: dist(), counts_plot()
  • Specialized plots: heatmap(), dotplot(), volcano(), stem_plot(), rank_plot()
  • Statistical plots: Built-in support for statistical annotations with add_wilcox()

🛠 Utility Functions

  • Styling: set_rcParams() for Nature journal-style settings
  • Plot enhancement: format_ax(), add_legend(), add_cbar()
  • File operations: save_best_pdf_quality(), make_folder()
  • Performance: Timer class for benchmarking

Installation

pip install plotting_utils

Quick Start

import plotting_utils as plu
import matplotlib.pyplot as plt
import pandas as pd

# Set journal-style parameters
plu.set_rcParams()

# Create a scatter plot with custom styling
fig, ax = plt.subplots(figsize=(6, 4))
plu.scatter(x, y, c=plu.darjeeling[0], ax=ax)
plu.format_ax(ax, xlabel='X values', ylabel='Y values')

# Save with best quality
plu.save_best_pdf_quality(fig, 'my_plot.pdf')

Dependencies

  • matplotlib
  • seaborn
  • statannotations
  • textalloc
  • joblib
  • scikit-learn

Release History

0.1.4 (2025-09-11)

  • Enhanced README with comprehensive documentation
  • Added proper package metadata (long_description, author, classifiers)
  • Improved PyPI package presentation

0.1.3

  • Previous stable release

License

See LICENSE file for details.

Version

Current version: 0.1.4

Metadata

Release files for plotting-utils 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plotting-utils 0.1.5
File Size Uploaded
plotting_utils-0.1.5.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plotting-utils 0.1.5
File Interpreter ABI Platform
plotting_utils-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / plotting_utils-0.1.5.tar.gz

Download URL plotting_utils-0.1.5.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b2c54c8c28cd21df02cafb892c2350d40da1fcd1023824352eee8e00e15fa0a5
BLAKE2b-256 checksum
How to use checksums
ef05d27370e5438d1cb98c1ed2dae25945b8322bee57c20384f888ec5a3561ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / plotting_utils-0.1.5-py3-none-any.whl

Download URL plotting_utils-0.1.5-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4378b60ec0398b6946897dd085d485f7622dba3640c15a68b70999335b4bb7e8
BLAKE2b-256 checksum
How to use checksums
1f195c2927596db6121496b8a5f8fa568a1fea7945b601c758d56d591aa876ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

1 release file

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page