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.4.tar.gz
(11.6 kB
view hashes)
Built Distributions
Close
Hashes for xypattern-1.0.4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f804c9dba942035fbb93df1fbabb4c2631841503f1b7e8442caad7f13ce07b |
|
MD5 | b85eb5a17e0321676a52a4c947f098d9 |
|
BLAKE2b-256 | af8c4f4400c5b3420afb9889ab6714e6c3ce9825a818a4b8b90fe1f364be1bc6 |
Close
Hashes for xypattern-1.0.4-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e9a6b01d668f76ef74c6997ed9832f2433e1cf4ef10136b731edc544a8bc216 |
|
MD5 | ff0522e2cbe9d2aa9654f804bf188c01 |
|
BLAKE2b-256 | a56fac98f43f3662badc6a8d95e5b58541d19351eadaec99be4f7286d17c09aa |
Close
Hashes for xypattern-1.0.4-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4d5bd7e56473bb839957755ef80ef4cec8b000df9c011f0559933dbcb2a6234 |
|
MD5 | 6c3297c566f39f99bb298295be3709ee |
|
BLAKE2b-256 | cc6fe7c3ffcfd0af62574eeadb69875c19f2ce9e27d73a97375b3be5eb33c3b8 |
Close
Hashes for xypattern-1.0.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08dbd6c9f353dda916c37c2fa403c937c65df9c79183a4678ce9ef4fb4c61a5c |
|
MD5 | 2c74bbaa18adb3caf8497ee7c23be521 |
|
BLAKE2b-256 | e4b47f9ebfd57260a3cde46582606e5463c8f9400d4d9c0ba8edf18681ab8916 |
Close
Hashes for xypattern-1.0.4-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cadf4b05e9e4ef22c9cadfcf5360815cad9bc856f449e5dcc8acedf7dcc7c44d |
|
MD5 | ae953ab750b13370bd6fab5c0076a74d |
|
BLAKE2b-256 | 067de4f7d44848864bc4a6e9d420fbcd4a3deec3f60e19f59740e96ece78da7d |
Close
Hashes for xypattern-1.0.4-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 744b8b1079ce3a12035c4abf668c7b5dc03eda1bccc3218a83f7f0a61188a676 |
|
MD5 | 857a281a632f57977732354d389d141d |
|
BLAKE2b-256 | 185e4f7a60f71c6001338d75b5dc7193f12fc5fd916b8a5070c98318e4598171 |
Close
Hashes for xypattern-1.0.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28ff3b8c81c273542bd95bc955dd3fb416ecd1d7344998a3b28e3d86128eb51a |
|
MD5 | 123c87ea1617fdd51737ad4b29bf8918 |
|
BLAKE2b-256 | 86b3e70dbfcce0055a7fbc3dae08656edc406151d945ddb7ebec4e4732c9b943 |
Close
Hashes for xypattern-1.0.4-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b0d6c8bd69523c274ec3bdc7592a6687be6a477fac60905b677685403a68eca |
|
MD5 | a5d8b8b1fb9fc6d871f26d35c4cedead |
|
BLAKE2b-256 | f0dae7f74975c41d9fcfb5e2533956843e0beb7024b7d8a13b61bd61b3f012cf |
Close
Hashes for xypattern-1.0.4-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 276287a2af738c00cfa22ce03e15c01e9985bde8aaf96bcf51c124d87d5b789d |
|
MD5 | 774dfbf61e8654e4c9b5ef5011225b9e |
|
BLAKE2b-256 | 791f53df60f26a1b4a00aaaf219cb89605c07ade0d0d514e5be9f048f45bc9d5 |
Close
Hashes for xypattern-1.0.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e3ffcfc34697a67492d9c893508a066501a4b11ba3b67e04b75381eb76dfaa8 |
|
MD5 | ec735652a39cb33ce082baa0ff799c7e |
|
BLAKE2b-256 | daf3ec1c40b029975a7f483bb2e78e82e9e1ecec52c2870c69831c20e41aae44 |
Close
Hashes for xypattern-1.0.4-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a9b9087b70114bba9d57c7a3067c86451765233edec2ec9334bd813cb53aae7 |
|
MD5 | df28bb391c0d683f4a528481ed8e7519 |
|
BLAKE2b-256 | ddb9d6c74af18e8b2789cad7383e684d36f7ba8a0c1cc6effe8dfe5bef888aa6 |
Close
Hashes for xypattern-1.0.4-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d08c58447da71377b9e654b73345ec88965dde6ca3399983a8e69a30271b2f2 |
|
MD5 | 3e17df2e8e833dbee19ca0e5151af959 |
|
BLAKE2b-256 | cb2f133a6807e716964d77d32416ece126bb4b57dbb81078d08b13912c6b764b |
Close
Hashes for xypattern-1.0.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0a213bbd6b1b9bd0faa21a4eedf0cfabfdb27e5d4d7a2fc84364aaabdb84e6b |
|
MD5 | c54fefd4b64c17b9129f3bbb09ff5755 |
|
BLAKE2b-256 | 97fe9d663dc127b257102729a947609565f6bc49be087733a97f918ea8e64a5b |
Close
Hashes for xypattern-1.0.4-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4190e3dac01ac1164fa1da455637464cb06bdb25455690936d903d7acb430dcb |
|
MD5 | 5cd67093a7c25c18bf02bf4924ac3668 |
|
BLAKE2b-256 | 5179507544cb06a1d5c7a975e123b48bd5559d52c22299e4c95cc849d172c15d |
Close
Hashes for xypattern-1.0.4-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b1160925790d5832bf0d2ed4a93abef524748a0f68214c6440965924b9634fc |
|
MD5 | 0b37acce8409eaeb7129c0b785ee7460 |
|
BLAKE2b-256 | 47837b36bc0fe1d3715ac8ecb5fee0a4ac6ad493c369a5681d1918c2bac9e5b2 |