alltheplots - Quick & Automatic Plots for All Array Dimensionalities
Table of Contents
About the Project
alltheplots provides an extremely simple Python interface for creating quick visualizations from numerical arrays, automatically detecting dimensionality (1D, 2D, 3D, 4D, nD) and providing commonly used plots.
The core goal of alltheplots is to abstract away the plotting details, letting you instantly visualize your data without having to remember specific plot types or parameters. It wraps seaborn and matplotlib, providing a user-friendly layer which typically sensible default plots.
- Simple: Single public
.plot()function. - Automatic: Detects array dimensionality and chooses appropriate plots automatically.
- Flexible: Supports numpy-like arrays from libraries such as
numpy,pytorch,TensorFlow,jax, andcupyseamlessly. - Minimal dependencies: built on top of
matplotlib,numpy,scipy,seaborn,scikit-learn, andumap-learn.
Installation
You can install the latest release using pip:
pip install alltheplots
Alternatively, install directly from source (Git required):
git clone https://github.com/gomezzz/alltheplots.git
cd alltheplots
pip install -e .
Examples
Below are a few quick examples demonstrating typical usage.
Basic Usage
Generate standard plots automatically based on the dimensionality of your data.
import numpy as np
from alltheplots import plot
data = np.random.randn(1000)
plot(data)
Saving Plot to File
You can easily save plots to file:
plot(data, filename="my_plot.png", dpi=300)
Custom Theme
Users are encouraged to manage the visual style externally by setting global themes in matplotlib or seaborn. For example:
import seaborn as sns
import matplotlib.pyplot as plt
sns.set_theme(style="ticks", palette="deep")
plt.style.use("dark_background")
# Then call the plot function
plot(data)
This approach provides more flexibility and aligns with best practices for managing plot aesthetics.
Example Notebooks
For more detailed examples, check out the notebooks in the examples/ directory:
- 1D Examples - Visualizing 1D arrays with time-domain, frequency-domain, and distribution plots
- 2D Examples - Visualizing 2D arrays with heatmaps, contours, and 3D surface plots
- 3D Examples - Visualizing 3D arrays with slice views, projections, and distribution analysis
- nD Examples - Visualizing high-dimensional arrays with dimensionality reduction techniques
These notebooks provide comprehensive examples of the various visualization capabilities and can help you understand how to best use the library for your specific data.
Dependencies
matplotlib- Core plotting librarynumpy- Array manipulationscipy- Scientific computingseaborn- Statistical data visualizationscikit-learn- Machine learning for dimensionality reductionumap-learn- UMAP dimensionality reduction for high-dimensional dataloguru- Logging
Contributing
Contributions are welcome! Please open issues and submit PRs at the GitHub repository.
License
Distributed under the GPL 3 License. See LICENSE for more information.
Metadata
Release files for alltheplots 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alltheplots-0.1.0.tar.gz | 54.4 kB | Without provenance | Details for alltheplots-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alltheplots-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for alltheplots-0.1.0-py3-none-any.whl |
Total release size: 136.1 kB
Release files / alltheplots-0.1.0.tar.gz
| Download URL | alltheplots-0.1.0.tar.gz |
|---|---|
| Size | 54.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65203891a56734094b49ba547ffeceea1bcde318c3ff61381e9aee86fe1bc5a6
|
|
BLAKE2b-256 checksum How to use checksums |
f20c42a859375fa609bf171f7c068613315bde455bc137a3a20ff6952cdb380e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / alltheplots-0.1.0-py3-none-any.whl
| Download URL | alltheplots-0.1.0-py3-none-any.whl |
|---|---|
| Size | 81.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9ca9cd2ff43e99b6cd29f65fef87d23d4ca4e15eb502fe2bc549ed689c603da
|
|
BLAKE2b-256 checksum How to use checksums |
3208f646554826540b22105be16235fb5f896d19f9accc317f3c07e78843047a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for alltheplots 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.