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.0.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.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plotprimes-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2e61cb05497ee7b4712219bbe9b2fdd6eb60d5bd84bf202be4e8f5282fa2687b
MD5 1538b33c51423132c6bf5d5d3669a293
BLAKE2b-256 385dc4dfe727b35b551edff8d8d66307d7865a8500f0157d453110d147eb75d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plotprimes-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56146cc48efb5932f8b9ea36d8016690a677d871d57c4666019b98d335038b18
MD5 129e90fb8a936436d7758fd343d0b87d
BLAKE2b-256 50200a1c097adc0b7a3af34c3f4d9a54e0481a98fac46c27d2a90379bf5f60e9

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