Skip to main content

Plot prime numbers on a polar coordinate system

Project description

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

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

plotprimes-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plotprimes-1.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file plotprimes-1.0.1.tar.gz.

File metadata

  • Download URL: plotprimes-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for plotprimes-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0dd209975329f5388ce5c6c55bc8c06fc58aa49d132b558c1cfc040d55154494
MD5 6dfb2cf8bdfdf168adfeee116f0f9be1
BLAKE2b-256 549ae1d8527c6c5e8539aeafd013153ebcac7074cd353805a442577ec3119e27

See more details on using hashes here.

File details

Details for the file plotprimes-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: plotprimes-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for plotprimes-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8473761e24ae2daae725390f5faadb666280478247e21a578583f35dfc91f418
MD5 9ec3f23a6fb00d40da751255ee1851f7
BLAKE2b-256 32885c275c8b5d2c4cdc91819c87bc54140f9bf810cc2bc89235727749e0f44d

See more details on using hashes here.

Supported by

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