Add a short description here
Project description
py-xrd-visualize
this software is for visualizing xrd data. 2θ/ω scan,ω scan(Rocking Curve) and φ scan are supported.
install
- python ver >= 3.10
pip install py-xrd-visualize
dependencies
- matplotlib
- numpy
- scipy
enviroment
- Linux (developed on)
no check,but it will run
- windows
- mac
pypi
usage
see test_xrd
import matplotlib.pyplot as plt
from py_xrd_visualize.xrd import (
fig_2θ_ω_1axis,
fig_φ_scan_1axis,
fig_ω_scan_1axis,
)
def plot_2θ_ω_1axis():
paths: list[TextIOBase | str | Path] = list(
map(lambda x: Path("src/test/") / x, ["test.xy"] * 2)
)
print(paths)
fig = fig_2θ_ω_1axis(
paths,
[1, 1, 1],
legends=["test1", "test2", "test3"],
legend_title="2th omega",
legend_reverse=True,
range_=(10, 70),
# range_=(38.2, 39.0),
ax_func=ax_func_horizontal_annotates(
10,
[
Annotater(38.5, 0, "38.5,10-5", (0.0, -5)),
Annotater(38.7, 0, "aaaa"),
],
),
fig_conf=fig_conf_show(figratio=(5, 6)),
)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_xrd_visualize-0.2.1-py3-none-any.whl.
File metadata
- Download URL: py_xrd_visualize-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdcc5f4b0c4b03341934782800ba2dcaa631788e6a933e73ce60f65221935d76
|
|
| MD5 |
ccbb76f6118cae40b75cf6ea8d4ed338
|
|
| BLAKE2b-256 |
ac8fc85780da386f58504a343b6523ae342203491abbe54e6f7c5c0b93db9629
|