pastamarkers
This is the amazing pasta marker project, which allows you to use the famous italian pasta types as matplotlib markers.
Installation
The code can be quikly installed from Pypi:
pip install pastamarkers
Usage
Import the necessary modules:
import matplotlib.pyplot as plt
from pastamarkers import pasta, salsa
Then, you can directly pass the desired pasta (i.e. marker) and salsa (i.e. colormaps) to the matplotlib argument:
plt.scatter(x, y, marker=pasta.penne, c=z, cmap=salsa.pesto, s=500, linewidth=0.2)
Note: play with size and linewidth parameters for a perfect pasta marker!
You can also top your pastaplot with parmesan chees by adding _p to your colormaps.
Alternatively, you may use the function add_parmesan to sprinkle a bit of chees on your pastamarkers
from pastamarkers import cupboard
fig, ax = plt.subplots(1,1)
ax.scatter(x, y, s=500, c=z, marker=pasta.tagliatelle, cmap=salsa.ragu, linewidth=0.2)
cupboard.add_parmesan(ax, amount = 10000)
Below you can see the supported data types. Please open an Issue if you would like new pasta types to be included!
Examples
See also the \test folder for working examples.
Citation
If you find this code useful in your research, please cite the following paper (ADS, arXiv):
@ARTICLE{2024arXiv240320314P,
author = {{PASTA Collaboration}},
title = "{pastamarkers: astrophysical data visualization with pasta-like markers}",
journal = {arXiv e-prints},
keywords = {Astrophysics - Instrumentation and Methods for Astrophysics},
year = 2024,
month = mar,
eid = {arXiv:2403.20314},
pages = {arXiv:2403.20314},
doi = {10.48550/arXiv.2403.20314},
archivePrefix = {arXiv},
eprint = {2403.20314},
primaryClass = {astro-ph.IM},
adsurl = {https://ui.adsabs.harvard.edu/abs/2024arXiv240320314P},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
Currently supported pasta types
Metadata
Release files for pastamarkers 1.0.2
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 |
|---|---|---|---|---|
| pastamarkers-1.0.2.tar.gz | 1.9 MB | Without provenance | Details for pastamarkers-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pastamarkers-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for pastamarkers-1.0.2-py3-none-any.whl |
Total release size: 2.2 MB
Release files / pastamarkers-1.0.2.tar.gz
| Download URL | pastamarkers-1.0.2.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2da8e06ec24860b909edf2b66326cc392f90e565b852bb41db8a6e8f9eaa3994
|
|
BLAKE2b-256 checksum How to use checksums |
116a5ecc695f640df5d3b4d4a41dd09a2b2475e87e72a6a5342cab2a7748ce7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.2 Linux/5.15.167.4-microsoft-standard-WSL2
|
Release files / pastamarkers-1.0.2-py3-none-any.whl
| Download URL | pastamarkers-1.0.2-py3-none-any.whl |
|---|---|
| Size | 229.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec3436cbd2ca5d95764a6a03e4852b669b2e05ce7ffb1ac9cef2fd8cea256f72
|
|
BLAKE2b-256 checksum How to use checksums |
73c335ece03b94feef4e8fa923b494a33549f0a12a11ba0669b35c4114322609
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.2 Linux/5.15.167.4-microsoft-standard-WSL2
|
Security for pastamarkers 1.0.2
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.