Skip to content

jtompkin/plot-primes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plot-primes

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

Run it

Directly

  • Download plotprimes.py and run it with Python. This script requires matplotlib.
  • OR: Install from PyPi using whatever people use to install Python packages nowadays.
  • OR: Install a wheel from the releases page.

Nix

The flake exposes plotprimes as the default package:

nix run 'github:jtompkin/plot-primes' -- -h

If you're feeling spicy, you can download the nix/plotprimes.py script and run it directly. This is a reproducible interpreted script: 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 name. (default "twilight")

Build it

Requires Python and build.

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

About

Make nice polar plots of prime numbers

Resources

License

Stars

Watchers

Forks

Packages

No packages published