Skip to main content

Elegant wrappers around matplotlib and seaborn for scientific plotting

Project description

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

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

plotting_utils-0.1.5.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

plotting_utils-0.1.5-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file plotting_utils-0.1.5.tar.gz.

File metadata

  • Download URL: plotting_utils-0.1.5.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for plotting_utils-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b2c54c8c28cd21df02cafb892c2350d40da1fcd1023824352eee8e00e15fa0a5
MD5 d69c25bf0fa81b4225055941e3de8d29
BLAKE2b-256 ef05d27370e5438d1cb98c1ed2dae25945b8322bee57c20384f888ec5a3561ce

See more details on using hashes here.

File details

Details for the file plotting_utils-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: plotting_utils-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for plotting_utils-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4378b60ec0398b6946897dd085d485f7622dba3640c15a68b70999335b4bb7e8
MD5 5678f3f1381beb38ad1a2987bdc7db4a
BLAKE2b-256 1f195c2927596db6121496b8a5f8fa568a1fea7945b601c758d56d591aa876ec

See more details on using hashes here.

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