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 hashes)
Built Distribution
Close
Hashes for scatterplot-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 481ee3bb05f045a05d8a9ade32ac460c4aaad6c330db7022e4df8ede9a0d0edd |
|
MD5 | 48243898b2c090847f7197e8106b42cd |
|
BLAKE2b-256 | a58c29b47e3373d5de8a23946c513c70a3a0f16cfb0a29e6e6c6c70f09912afd |