Format numbers as multiples of Pi
Project description
Matplotlib Format Pi
Create locator and formatter instances to make x/y labels and ticks correspond to multiples of pi.
The MultiplePi
class provides methods to seamlessly tell matplotlib to create and format tick labels as multiples of pi.
In addition, the MultiplePi
class allows a user to change the denominator of pi.
Multiples of π/{2, 3, 4, ...} can be represented if needed.
Examples
Simply, the instance can be asssigned a denominator of pi then passed to matplotlib.
The parameters can also be modified to adjust the output to something more sophisticated.
Todo
- Raise error for improper usage (plugging in 1/4 for a multiple of 1/3)
Meta
Inspired by this post on StackOverflow.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matplot-fmt-pi-1.5.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for matplot_fmt_pi-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d88337fd849062ccac78c0ada77d2a29411e81bdf86056bb9128df7e600a45 |
|
MD5 | e624209b9ffeef4face6982fe93119e1 |
|
BLAKE2b-256 | 8a34e791978b903f539175e437c5ddcf33ad804beefc159fa782dcaa66275081 |