Skip to main content

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


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)

Uploaded Source

Built Distribution

scatterplot-0.1.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page