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.1.1.tar.gz
(12.3 kB
view hashes)
Built Distributions
Close
Hashes for xypattern-1.1.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb90c244ffada9ae65b0e8775b4aa985f9df7c4eee2e52bc5a4815984a34717 |
|
MD5 | f10d72d4768db889107b46cefba2bcba |
|
BLAKE2b-256 | d4014e43177d5a8107624e9bdc5d868a121077914e3857fb7a7fb1429c5473c4 |
Close
Hashes for xypattern-1.1.1-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca36605e464cc734181bce58eaf1cd587b9b89614d7816fbf18981e2b95c5ab |
|
MD5 | 793a4f8bcb9c4a9c9b4c5d8ddd5f4eb4 |
|
BLAKE2b-256 | 2980f603f74edd44fa93f5d9e20094bf1c38799e3fc7180161f1188e8a119f50 |
Close
Hashes for xypattern-1.1.1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c840b721ff29562df7773a77f3b8bd296832d009aacf296ec9fea560841ae975 |
|
MD5 | a750bcdd55b16282863fb109b4c3db95 |
|
BLAKE2b-256 | dd347446ca0dbd1ce490006b9213655bb442afa925b2f5cc648a33907b1d0ec0 |
Close
Hashes for xypattern-1.1.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44963f3282fcfcc98f2d16f3d1a926123a93a9ef27eff34e1017ce53a2dd3984 |
|
MD5 | 35bb735a52a746a6db2d29b8416f6879 |
|
BLAKE2b-256 | b0d96a315693da763649125d47cd78a81d7d9984c7150c31cbc53c7d64a8249b |
Close
Hashes for xypattern-1.1.1-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5482feb13667485b52f95945a94df7754aef5143c7d333485aec51ae5832c483 |
|
MD5 | b6a5c366ef8fd502c6a6f3b83f0c0895 |
|
BLAKE2b-256 | 96b3831689835f0bf9636c0faabf84dad091fc573ece5423180731c14d418c76 |
Close
Hashes for xypattern-1.1.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5e20b36d9598170ff12bdfb3cd700ffbe31fb5918ce5ebfb6e4ada9949f5a2 |
|
MD5 | 36fb336ebf80b157ee01966c1c4c7c49 |
|
BLAKE2b-256 | 2dceb2b2ff9dae170e85aa1e2157f9bc5833a16c08a7961b227b756ebac8be67 |
Close
Hashes for xypattern-1.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9327bb37f9bc5d99610dceb8cd90cc7e4225489581c27012671ff6ba6b135864 |
|
MD5 | 17c4bfbc66d3bc1411fd2fe4ccb460f5 |
|
BLAKE2b-256 | 32210075e8e169fcf82d1973af4155c183199f875822f6c62239ea5c2e881f67 |
Close
Hashes for xypattern-1.1.1-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b09e8b53c43c43ff10916fa6eba09671e4080fa21c94a60f7cd65e199528d8db |
|
MD5 | 58b61bb621fd3ee735713f781f7d49b8 |
|
BLAKE2b-256 | 2379f1531b03bd6f6cbd39e12b89a50d850a5e5e83a8d58179054baa2c08467a |
Close
Hashes for xypattern-1.1.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa4e685c8ee9602f39dbdda00d021bf82503d951fe3a8c6408abe4e60e42f348 |
|
MD5 | 86894b143351b96532edcac67524fbe6 |
|
BLAKE2b-256 | 1e3273001cd9f4adc49cce8a1a5e2182db8774d3d9ceb33fcf31a1968a877ed8 |
Close
Hashes for xypattern-1.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b80e3617b790481951a60c1fce91fe57570210529301e1e34fcc55cc9ae83dee |
|
MD5 | f517a3a1ad7b74d9083239234b0456b3 |
|
BLAKE2b-256 | 055a746d916b11c2e32ce303c99261694a36d56357e16d21ea18875c9af3cebf |
Close
Hashes for xypattern-1.1.1-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c2c3f7bcbdfaac18b8cd51d0fdc9d5a76e1d490bbea40e3716503af9149e7b1 |
|
MD5 | 53ed9acab7511a2226e12946db716531 |
|
BLAKE2b-256 | c9254790b98d4d5435ec4063cb69f2d9c955a9be3534de3a748873a59f6c714a |
Close
Hashes for xypattern-1.1.1-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9130f0c2926f94d8f1ffa90a56edcca11c6ec396b2193868bfa6fbed65613698 |
|
MD5 | c14839e10dd243d08588917093460c57 |
|
BLAKE2b-256 | 055fbee89c9d3c659227d65d30bcdedefc64bb640d198e9969b1bc14c586376c |
Close
Hashes for xypattern-1.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62df0c83d3870e08cf2c9c15d2deeb6dbeea5cef6d81b2d6e08a4291729a94ed |
|
MD5 | 48d2d508e56a1eb4433cb47a0536ba20 |
|
BLAKE2b-256 | f7403fd00cfdec4923347d0b3116ac46bfe452da60b74897f457e4bcf1774096 |
Close
Hashes for xypattern-1.1.1-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8745451b0d1071d31fc137f9ea4a1a5cf85d1d306dad77d11efd9cc87a48257 |
|
MD5 | d46df5e54d42a957128ce202d8f8187d |
|
BLAKE2b-256 | a0b58f47a0c0ea3ddff2514c451fb6d3ada8d92891cd8c72f740e064f011650c |
Close
Hashes for xypattern-1.1.1-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09af123c58c2381b9767223c71a709f36838a9a4b2e3d0b32bc517e81e30c9a2 |
|
MD5 | caaced7cd1a6309b29a7d64a720ba185 |
|
BLAKE2b-256 | 0376d5bb7911da1fd073165c388411d1188f58528836965af09dc42a1969ce6c |