Skip to main content

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

py-xrd-visualize

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()

xrd 2theta/omega plot with this software

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

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

py_xrd_visualize-0.2.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file py_xrd_visualize-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for py_xrd_visualize-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cdcc5f4b0c4b03341934782800ba2dcaa631788e6a933e73ce60f65221935d76
MD5 ccbb76f6118cae40b75cf6ea8d4ed338
BLAKE2b-256 ac8fc85780da386f58504a343b6523ae342203491abbe54e6f7c5c0b93db9629

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