Skip to main content

astrophysical data visualization with pasta-like markers

Project description

pastamarkers

This is the amazing pasta marker project, which allows you to use the famous italian pasta types as matplotlib markers.

pastamarkers logo

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

CHIMERA

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

pastamarkers-1.0.1.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

pastamarkers-1.0.1-py3-none-any.whl (229.8 kB view details)

Uploaded Python 3

File details

Details for the file pastamarkers-1.0.1.tar.gz.

File metadata

  • Download URL: pastamarkers-1.0.1.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.2 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for pastamarkers-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3e99db4a06900be93e5a676f86f2409cce8063ee7ef20453e014720fdb0ad1a1
MD5 06c020851211ca1d3bf525c8edbfc89b
BLAKE2b-256 543d379957d4b40c220c52d600204dd4b82e4b464d4efff3c15c74bad45a08c8

See more details on using hashes here.

File details

Details for the file pastamarkers-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pastamarkers-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 229.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.2 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for pastamarkers-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa2cc50766efea69a9bca40fdba16954ebd2b506d1e501ec524a3bda516475ca
MD5 40a4e27775457286c7c5cbc32e582e39
BLAKE2b-256 62129b0311a426a2fdee81584c4720d43be2c175c64fbdaeff1f2ca35717c8e2

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