Metadata-Version: 2.4
Name: plotprimes
Version: 0.0.1
Summary: Plot prime numbers on a polar coordinate system
Author-email: Josh Tompkin <jtompkin-dev@pm.me>
Requires-Python: >=3.14
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: matplotlib
Dynamic: license-file

# plot-primes

It plots primes in a polar coordinate system. Looks real nice for wallpapers and such.

## Run it

### Directly

Download [`plotprimes.py`](https://github.com/jtompkin/plot-primes/blob/main/plotprimes.py) and run it with Python. This script requires [`numpy`](https://pypi.org/project/numpy/) and [`matplotlib`](https://pypi.org/project/matplotlib/).

### Nix

The flake exposes `plot-primes` as the default package:

```bash
nix run 'github:jtompkin/plot-primes' -- -n 10000
```

If you're feeling spicy, you can download the [`nix/plotprimes.py`](https://github.com/jtompkin/plot-primes/blob/main/nix/plotprimes.py) script and run it directly. This is a reproducible interpreted script&mdash;all you need is Nix, it will run in an environment with all dependencies satisfied automagically.

## Use it

### Flags

- `-n`: `int` Number of primes to plot. (default 1000)
- `-c`: `str` [Matplotlib colormap](https://matplotlib.org/stable/users/explain/colors/colormaps.html) name. (default "twilight")

## Build it

Requires Python and [`build`](https://pypi.org/project/build/).

```bash
git clone https://github.com/jtompkin/plot-primes
cd plot-primes
python -m build
```
