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.0.tar.gz
(80.2 kB
view hashes)
Built Distributions
Close
Hashes for xypattern-1.0.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 483f3c6d04a20ed8e99204130ec5896d9d13091107ef69996b03b537c32e0bfd |
|
MD5 | 58c78505d9ee7595f5554f42008f7da4 |
|
BLAKE2b-256 | d0c1e053dd20cceaea7c0e4c0661150d6f5c75459ce935726ff46ad51bb063e8 |
Close
Hashes for xypattern-1.0.0-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b1f4eb692d1c3c42ae3573d669d252083ffdb260f0c9efa78428e699fd7623 |
|
MD5 | 085a2cd957bf956db3a41ea486844a62 |
|
BLAKE2b-256 | 28d3f9c8a45c39c817606b364df97a442793ae8693a996f4980ea1865a246d31 |
Close
Hashes for xypattern-1.0.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 249cfe62d33c03dd122159678d7700d97d883d847b3dc541c1b5e3b93d8300d0 |
|
MD5 | ec908293128a2c4ba9507390128fd8ba |
|
BLAKE2b-256 | 3b384b42b25f5a6739081c0300ee90de828b38eb1e057f54f7bddba6642b2e5e |
Close
Hashes for xypattern-1.0.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24a727cef1cdabd98439bb5017887158b01c6d9b4ac7d992afe67191f10bcfd7 |
|
MD5 | 81f1aa7917e806d3f7379152d5eca9b5 |
|
BLAKE2b-256 | 014c5b3d7d69d4f3653462176c72b52119f70a99785d7b0226c594517d2e35e4 |
Close
Hashes for xypattern-1.0.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8e1636407a0eca863e9beec72f623fea60d92abeb9a18dd9827c0dafe797f9f |
|
MD5 | 995c9dfb5d3c83b6c832cac31ce4c4e2 |
|
BLAKE2b-256 | acde818a8eefdac0c5d107b05b05a7e93a807c86df6440fd1346b9fc02e96057 |
Close
Hashes for xypattern-1.0.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3322a79f118413c49df5e24787ce1ed77b95590da92af48887d9c5889d30bd7 |
|
MD5 | 3d4a0a42db58309df8fe6c75a1918b1e |
|
BLAKE2b-256 | f2dfd01992164748364497bb0fd48c60aedc4d8475728be186f132ba922b6678 |
Close
Hashes for xypattern-1.0.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b52817942cdad89b5a04d84550df5724856ae88f57b0a357ba6942c5636b1d3 |
|
MD5 | 4a75036321806f27d578a2d1ef4faf4d |
|
BLAKE2b-256 | ccd888b8d7ca177bffd85013836c328377e181f9b2eab7f80736c986f760c997 |
Close
Hashes for xypattern-1.0.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89fbedc15cf4c1a76d54f88edbea94de2f4663c3f89df83775a225edfb9f088b |
|
MD5 | 26f2e4e76991c6f677c73432a02c9c11 |
|
BLAKE2b-256 | 5847ddfa40a7d33bf4be2c0de65d1a0cb6b114eb847102f2d3a0bd6b60840758 |
Close
Hashes for xypattern-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8da3418810e3208e1ceb5577c0694272bfb024b9d32b90f1852ff42b993f4a5a |
|
MD5 | 52d8feea97d85e3b1ed5ba421d277606 |
|
BLAKE2b-256 | d652d282db6803f280e1571c8600cac1a95151520ebd618e5a849b26b67f8890 |