A customizable scatter plot package
Project description
Here is an example README file for your scatterplot package:
Scatterplot
A customizable scatter plot package for Python.
Installation
pip install scatterplot
Usage
from scatterplot import scatter
x = [1, 2, 3, 4]
y = [2, 4, 1, 3]
# Basic plot
scatter(x, y)
# Custom colors
colors = ['red', 'green', 'blue', 'black']
scatter(x, y, c=colors)
# Size by y-value
sizes = [10, 20, 5, 30]
scatter(x, y, s=sizes)
# Colormap
scatter(x, y, s=y, cmap='viridis')
Features
- Simple interface with sensible defaults
- Customize colors, sizes, alpha, marker style
- Size markers by value for bubble charts
- Colormaps for continuous sizes/colors
- Pass through any matplotlib scatter kwargs
Development
Clone the repo and install in editable mode:
git clone https://github.com/yourusername/scatterplot.git
cd scatterplot
pip install -e .
Run tests with:
python -m tests.test_scatterplot
License
The MIT License (MIT)
Copyright (c) 2023 Sameh Salah
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scatterplot-0.1.0.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file scatterplot-0.1.0.tar.gz
.
File metadata
- Download URL: scatterplot-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf1974784cae50f16609a275c8eb3c4f76eea8a983eab9ab3df66aef8fbf50f7 |
|
MD5 | 08f22310b9c695d5f879d1866e764e5e |
|
BLAKE2b-256 | 53ce0f06d5bf72c920bdf6d0377be78be9bfa4f4e25c9adb3629d1cff684ba11 |
File details
Details for the file scatterplot-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: scatterplot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 481ee3bb05f045a05d8a9ade32ac460c4aaad6c330db7022e4df8ede9a0d0edd |
|
MD5 | 48243898b2c090847f7197e8106b42cd |
|
BLAKE2b-256 | a58c29b47e3373d5de8a23946c513c70a3a0f16cfb0a29e6e6c6c70f09912afd |