Matplotlib Format Pi
DOCS
Branches
Master
| Version | Upload Status | Downloads |
|---|---|---|
Release
| Version | Upload Status | Size |
|---|---|---|
Format multiples of pi as strings on Matplotlib axes.
The MultiplePi class creates a Locator to place ticks at desired multiples and a Formatter to format all tick labels.
The base (π or τ) can be divided by any Natural Number.
Multiples of one-π or one-τ can be placed/formatted too. (2π, 3π, 2τ, 3τ, etc.)
Installing
pip install matplot-fmt-pi
Examples
from matplot_fmt_pi.ticker import MultiplePi
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.
Running Examples
Clone, then from the repo,
cd examples/
python *.py
Put the repo's directory in the python path to import the matplot_fmt_pi folder not the installed package.
PYTHONPATH=/home/user/py-pros/format-pi python examples/pi_graph.py
Todo
- Add testing option once installed (Like
numpy.test()) - Windows
make.bat?
Meta
Inspired by this post on StackOverflow.
Metadata
Release files for matplot-fmt-pi 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| matplot-fmt-pi-2.1.0.tar.gz | 6.6 kB | Without provenance | Details for matplot-fmt-pi-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matplot_fmt_pi-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for matplot_fmt_pi-2.1.0-py3-none-any.whl |
Total release size: 13.4 kB
Release files / matplot-fmt-pi-2.1.0.tar.gz
| Download URL | matplot-fmt-pi-2.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0d598209c0581e5e9e38051134516c3f59c744a7e4efce26dbd9f108bd2f6cf
|
|
BLAKE2b-256 checksum How to use checksums |
cd55c607ba84a34470d23bf64fe12625b87864a54b35f7ff82ce9224e6275bac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Release files / matplot_fmt_pi-2.1.0-py3-none-any.whl
| Download URL | matplot_fmt_pi-2.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efb36d32db015f37f57e1aaa7fa9ef0c2ca1884441c1d34ce50042c0498b62fa
|
|
BLAKE2b-256 checksum How to use checksums |
879ea6355c947711e279d9c098e5a3b40d34cae23ae44016fd9a85696dfe22df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Security for matplot-fmt-pi 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.