Skip to main content

Library to draw the pyrochlore lattice and configurations of the Spin Ice model

Project description

Overview

Library based on matplotlib (>=3.3) to draw the pyrochlore lattice (corner-sharing tetrahedra) and configurations of the Spin Ice model.

Installation

$ pip install pyrodraw

Basic usage

It can, and probably should, be executed as a script:

python -m pyrodraw [<parameters>...]

and follow the instructions which appear on the screen.

Depending on the parameters supplied:

  • No arguments: draws only the pyrochlore lattices and adds details such as names to the axes.
  • '+ z': draws the spin ice +z configuration.
  • 'ms': draws the saturation configuration with the field at [111], with positives simple monopoles in all Up Tetrahedra.
  • 'md': draws the configuration with positive double monopoles in all Up Tetrahedra.
  • Name of a file along with a column number: the data is obtained from it to draw the configuration.

It's also possible to import it and use it to draw more specific configurations.

Possible general improvements

The following are things I didn't know how to do it properly by the time I built the library, and for the purpose of the project it didn't worth changing them when I published it.

  • The documentation is not properly done (doesn't follow a docstring convention), and it's in spanish.
  • It probably should use argparse for managing the arguments.

ToDo

  • Add a circle path as a bottom lid for the arrows.
  • Be possible to annotate the field direction when using the field arrow.

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

pyrodraw-1.1.4.post13.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

pyrodraw-1.1.4.post13-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file pyrodraw-1.1.4.post13.tar.gz.

File metadata

  • Download URL: pyrodraw-1.1.4.post13.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure

File hashes

Hashes for pyrodraw-1.1.4.post13.tar.gz
Algorithm Hash digest
SHA256 6f1b2e983a95bd67a4a5dee224bb973de92e993d526afa208c96be0d4c0c9e01
MD5 83f30dd87af1ce8bd21397ac54e5de06
BLAKE2b-256 32de105c388c1906aee2183df72643a8ec6f5f9aa69d21eb5472a6a5dbe452a8

See more details on using hashes here.

File details

Details for the file pyrodraw-1.1.4.post13-py3-none-any.whl.

File metadata

  • Download URL: pyrodraw-1.1.4.post13-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure

File hashes

Hashes for pyrodraw-1.1.4.post13-py3-none-any.whl
Algorithm Hash digest
SHA256 68ce077314cac72662f47d434d22f79b545f3259e8b0b53ed21c6412b2b7a4a8
MD5 958c035a1d926c212f1d1979a02b205b
BLAKE2b-256 1faeb3a65abd8016e2de1cd82a7cbd63cbdaf561de7da132412a590ce492a701

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