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 numpy and matplotlib.

Nix

The flake exposes plot-primes as the default package:

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

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-0.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for plotprimes-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3d63200ab7bf71679bd5f07584291806afd4649bd00f31de535a8ef80b920f7c
MD5 a88b5010f7f3767fb0f9cab4f6e0b260
BLAKE2b-256 a23caf4bbac73a120011e7f59958fc7570a28601973119250b8a928e46c7f1fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plotprimes-0.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-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae2b0f69ea6c51bb8b7fc9daff0e734cd6cc5369cd9958754c35d18477507d90
MD5 3a59625b9c08d236f187a715cda60ec2
BLAKE2b-256 f52fa4c18b8ee96760760794730c14147c6fedb818df48a1bdd95303b0039767

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