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:
Timerclass 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2c54c8c28cd21df02cafb892c2350d40da1fcd1023824352eee8e00e15fa0a5
|
|
| MD5 |
d69c25bf0fa81b4225055941e3de8d29
|
|
| BLAKE2b-256 |
ef05d27370e5438d1cb98c1ed2dae25945b8322bee57c20384f888ec5a3561ce
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4378b60ec0398b6946897dd085d485f7622dba3640c15a68b70999335b4bb7e8
|
|
| MD5 |
5678f3f1381beb38ad1a2987bdc7db4a
|
|
| BLAKE2b-256 |
1f195c2927596db6121496b8a5f8fa568a1fea7945b601c758d56d591aa876ec
|