Library for handling x-y pattern data.
Project description
xypattern
Description
A simple small library to handle x-y patterns, such as are collected with x-ray diffraction or Raman spectroscopy.
Installation
pip install xypattern
Usage Examples
Reading a file
from xypattern import Pattern
import matplotlib.pyplot as plt
p1 = Pattern.from_file('path/to/file')
p1.scaling = 0.5
p1.offset = 0.1
plt.plot(p1.x, p1.y)
plt.show()
Use a background pattern
p2 = Pattern.from_file('path/to/file')
p2.scaling = 0.9
p1.background = p2
Scale and stitch multiple patterns
p1 = Pattern.from_file('path/to/file1')
p2 = Pattern.from_file('path/to/file2')
p3 = Pattern.from_file('path/to/file3')
from xypattern.combine import scale_patterns, stitch_patterns
patterns = [p1, p2, p3]
scale_patterns(patterns)
stitched_pattern = stitch_patterns(patterns)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xypattern-1.0.3.tar.gz
(81.2 kB
view hashes)
Built Distributions
Close
Hashes for xypattern-1.0.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3d0eefd8cee216915fd7f9deac26f280d274c96e7fae3325ba876cda2565399 |
|
MD5 | 8bd8ecc9ef8cb1a76693012df26ba1f5 |
|
BLAKE2b-256 | 47263ba9f2a8d271f40f4a87b8a18c3c5bdb852c078b624b02a36f406aa84308 |
Close
Hashes for xypattern-1.0.3-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8c754f88e3476938c7a5f83a36bc45fd6ecdb4c563c9c9be06ee7fddd07df6d |
|
MD5 | fb3eb6b883f32da229f8e2fbc3bb7abf |
|
BLAKE2b-256 | aa892bd8e8934af02abffe71ccf6ee1ad3a0ea843891d07ac868f319ebc72d2a |
Close
Hashes for xypattern-1.0.3-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989cdabae82b6fff85ca6ca8a1950440e18fc4e2d629fd4dfa4c7c66d64360a5 |
|
MD5 | 614c3b3dc34367b9415110bdf8a607a1 |
|
BLAKE2b-256 | bbb8c1254590a1885b590ea958f6bcbcb160777900a6075c29aa76000ec1bae2 |
Close
Hashes for xypattern-1.0.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71d6dee87528ed6e657bd596340d2fe5ba15e1575350b338063b7193a07d83cb |
|
MD5 | 345c0a485aeba609c2a3b61f5d49a2ec |
|
BLAKE2b-256 | 9b7a6c0a38f566e4bcff59f1e874fdd038a61b3cf66f57d677ff750d3ea8dcb2 |
Close
Hashes for xypattern-1.0.3-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1af031e227e64cac77ffedf44973b0fbf6483186018f5dbde01f0ed10652a9be |
|
MD5 | fba8a18e9f0e8fd9f60f06b9aabcd47f |
|
BLAKE2b-256 | 2c87c3f2911a423f0c7720ebd838ed89376e409b683dbda6b9db5bfa1d047261 |
Close
Hashes for xypattern-1.0.3-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c255e82469513e622f1f530ada1713d5e92e33790a24416da6f44c72930c6b50 |
|
MD5 | 75bff372a32119d286ae648a4d1c489d |
|
BLAKE2b-256 | fdc8f1ea0accf50b936a80c1ed90f6a0912dc6d48795f45c3eedca6df69e5706 |
Close
Hashes for xypattern-1.0.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0831c6fe919a3c09da9ce1651aab71074519fd484ab9ae43032490b18267c306 |
|
MD5 | ab1f75daba513df437dc45d5fa8cc8e3 |
|
BLAKE2b-256 | 257b89dde263ec96733fc56ad3d8557aad3146277f98a2a0bdbe3708af512d01 |
Close
Hashes for xypattern-1.0.3-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76f5cc5c2949cbad77b4e686f485983ac1506d2779d002c02b53bebd4a7df4fe |
|
MD5 | ad9f969b4a11b07c4cf241bbd00b73a4 |
|
BLAKE2b-256 | 452a58aff3f5eec11f98d95b60f9e8835ef6cc387d0e8d2bbe88047afedbd91b |
Close
Hashes for xypattern-1.0.3-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f3f14666a6b2d957c614b2279a83fe81542506ad2a1b5ed3ab91c09a6d43018 |
|
MD5 | 4dc4a80d743deaa727d5828db0ca83b6 |
|
BLAKE2b-256 | b86d1f466ecc88f7d7f5607cad5c85028e55ef2d8174965722036b323a6899e2 |
Close
Hashes for xypattern-1.0.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e2d8099281029f282a2f03aafbea00db4b289c29d9c5bc25f5f3db26c67081 |
|
MD5 | 07a201dd1f4e11b5cdc6635d412d3409 |
|
BLAKE2b-256 | 9d6747883540bad491f92c6ad437f9abceb28a2893863088d84582d4b967be59 |
Close
Hashes for xypattern-1.0.3-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47849214a1a627a88fe7c1b05faedf03ead5e61bea076c2b113b4e98db2e75b3 |
|
MD5 | 8b4ea280b518c114073abfd2c7a5735c |
|
BLAKE2b-256 | 056982c75d317caa9704f9a23ffc57ef46bcde510fdff8e9191df67bad322c0d |
Close
Hashes for xypattern-1.0.3-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11a46f6a4067248ea896daf5266f26bc60717bd4297db8ad4718eacd05e6bbd6 |
|
MD5 | e81fd3f91dbc8d0827cce143e855ce16 |
|
BLAKE2b-256 | 33348353a47c706b7a4f56b8550987988483288049aa4f9edea4bf4e3ffe40d4 |
Close
Hashes for xypattern-1.0.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e75fc3e571d15b45eb6dcc7560fc9814cd924a455d8914adcde81b798c1b2cf0 |
|
MD5 | 0111dfce5db09cb0b6b6db9976b5d99b |
|
BLAKE2b-256 | 5f28a0aa1591ddb28b3f4e07372aab3b884726fa647316f6b29f2e0db2e39489 |
Close
Hashes for xypattern-1.0.3-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47d0c9ef9d5987d73158fdc73d94302181a38e318ae236388cef2fff518d9b63 |
|
MD5 | 06cedf41e49c84801af342aeed1f4e4c |
|
BLAKE2b-256 | eacea2d1f4106d6893a0128ad7d435271ee693eccdae273fdcb2e51c95b37160 |
Close
Hashes for xypattern-1.0.3-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a94f8b5e0dcab797ae84f29ca27e48c01876681a69b07088dd220d0c966a489d |
|
MD5 | 313ff758ef0940b663d877ddfbf981ee |
|
BLAKE2b-256 | 6eaf2bf7b6a8ae88fc1ab39e9edc092642ed367aad96b09da34fb0f454ad3a56 |