Plot potential energy diagram in python
Project description
pyEnergyDiagrams
Installation
pip install pyenergydiagrams
Usage
from pyenergydiagrams import State, Diagram
import matplotlib.pyplot as plt
states = [State((-1) ** i) for i in range(20)]
states[5] = State(-3)
states[13] = State(-5)
my_diagram = Diagram(states)
plt.plot(my_diagram.x, my_diagram.y)
my_diagram.add_dotted_line(states[-2], dx_right=2)
my_diagram.add_arrow(states[14], states[13], "$E_1$")
my_diagram.add_arrow(states[-1], states[-2], "$E_2$")
plt.show()
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
pyenergydiagrams-1.0.1.tar.gz
(37.2 kB
view details)
Built Distribution
File details
Details for the file pyenergydiagrams-1.0.1.tar.gz
.
File metadata
- Download URL: pyenergydiagrams-1.0.1.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d2332be9b93740365415d934ac50243f74dc35c70a36e890f151b63a139bc87 |
|
MD5 | ca1e0adce3487f5828e94577d67cc897 |
|
BLAKE2b-256 | f9f74b9254462efa8703e9dd50e5ee4a4dc9e5bd8294647581af225eca8f00cb |
File details
Details for the file pyenergydiagrams-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyenergydiagrams-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c0c87a6592e03aed13ff9da67c1403ce01161af423b51a31e4be37207323fff |
|
MD5 | fe571c9ba4a9effe06d4c6626e497049 |
|
BLAKE2b-256 | 7886bcff1b27bec4af923cbef5d85944ce9c17e7fa7fb2422eb86050fe306f98 |