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.0.tar.gz
(12.3 kB
view hashes)
Built Distributions
Close
Hashes for xypattern-1.1.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53f9836fff3723e7d42a93fffd08f8ce76f60177be60210ef80e55b25e74ba7e |
|
MD5 | 83a2e2db3772c4d213524edacdab6877 |
|
BLAKE2b-256 | 2db3a5ccf3fa1ffa54bd32fb0db436f5fbda76fd62f52dab7a3ea939ec2aee65 |
Close
Hashes for xypattern-1.1.0-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07f822ab1c2f28d32e0d9655d65ca9f9e73304e55a75ab8cae3dd922595a9dc1 |
|
MD5 | fb600377c1c70164655d31cb5c908aff |
|
BLAKE2b-256 | 3c8992b5a083b0d7ba863096c65bef12e2c95f6ec69ab0f20f159c2f851b0f5d |
Close
Hashes for xypattern-1.1.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f842f9661fab3a80fc9f125163cc6dccb9b2bba99b41a56e36cfbf39b21f769a |
|
MD5 | 2861fda6f09cf10a54a3e31466c7a33d |
|
BLAKE2b-256 | de0889502b3dfb54e4e37a24df9952220cc5f0a18fa2dc300d5d9eba30610776 |
Close
Hashes for xypattern-1.1.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc7ba6e82f9d1204c28087b365e86860663e88fc2bc81cd6f4ed7e08064c0d74 |
|
MD5 | d867c3da27a12e3502d768ef4acd6d8d |
|
BLAKE2b-256 | cc3fb19fcfdf445f2221c079a5c0733555a32465db7042f9db1648397ff25428 |
Close
Hashes for xypattern-1.1.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47f62d43a1d9671941f4470fd4c9be989c610a88c5f76c1d11a2fe3300b0ebdc |
|
MD5 | 0ef888ee2317259d559f0a5c8c862424 |
|
BLAKE2b-256 | f8603c801611c11068c8755e2ae020229295187f4bc6c15f9166207f44b800fe |
Close
Hashes for xypattern-1.1.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f1dbd449ed52cfbd7ff691cd7274613cecf554a67cb7e238764162fe084c3a8 |
|
MD5 | e36a566be0d26816086bdca6d7147d55 |
|
BLAKE2b-256 | 9e29e0bba8c049b3e5ead4c1dfd5491b2f9f3bb6f698c11480bfd346250b4d4e |
Close
Hashes for xypattern-1.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07afe743f7cbb035b186914900834032409a5128297c118690772132c92f7dba |
|
MD5 | b7240e28eac9de4d759d09367fdca5ed |
|
BLAKE2b-256 | 6ffa4bc25b84c4869a00621689b7df503f46ed0b6e7bd42479f783d7c8471ada |
Close
Hashes for xypattern-1.1.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b86563494b9fa72c4ccbcad4265831cb65324b623fe28506b1763efcc2c3cba3 |
|
MD5 | b869e41cd3610673ad0fce09933acbdf |
|
BLAKE2b-256 | d529d2d602716555cb1fb3f41974f082a46f5c6eaa1812401aed634e40d3c704 |
Close
Hashes for xypattern-1.1.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07bf4e4b19d90d05e855902308b4f060aca3f46f99abed2daa5cdc368ebd0ed1 |
|
MD5 | 3f097cc73b68e29faf062de2aa249fa2 |
|
BLAKE2b-256 | f25da6abecc457ba0d3b673b890f0631edc813d3978ef9e3d12fed9b3a396217 |
Close
Hashes for xypattern-1.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6ce3100630f20c27b887c5116b4fd566467f0eb73c8cf8cb84d44226726aa82 |
|
MD5 | 800166fe64093c2d354a1397ddcfeb46 |
|
BLAKE2b-256 | 9b2a04425adaba094eab211dbc8c61143676d06dbcaa314ae8b0e85bfca356a4 |
Close
Hashes for xypattern-1.1.0-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4c36a3dcf8982760e5e65645bcc55fca5dadfd2a21e200f2d6a7fddb019cb57 |
|
MD5 | 57f37307b39440a216780cc7e81000e5 |
|
BLAKE2b-256 | 047081bada17fe358cbad4b53d4eafaecd8685a7912a8243a00a638685a2100e |
Close
Hashes for xypattern-1.1.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fca810e87eb799cfc13b42f1eb8d12f8e6ea5694e8186ba3e0db0a1bc176cf0e |
|
MD5 | 34fa36699d4949819e512455440ba805 |
|
BLAKE2b-256 | f8e8b27edd6a2f2b5d397cb95b700cd7d878754b672416c7e5aeaa3046bab0eb |
Close
Hashes for xypattern-1.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9a51e7ca8ad5b9d0c91d2905ea9b112505e6e4d7a98056a9127247acf1b304 |
|
MD5 | 1e093312aa58022bef10c138e69866e0 |
|
BLAKE2b-256 | a98d880385321d1c2173d4d20bd5e554ca78819b9d9b72215f76e189aa1dfa67 |
Close
Hashes for xypattern-1.1.0-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706efbd9b0794c5b6d0d15415993848a61776e48d7d1fe5a9574627e76d59ed9 |
|
MD5 | c67f4e6b6e26092976e923823b9083b6 |
|
BLAKE2b-256 | 9bf6fdce4452f0645409f9db1d45bb9602d4b0c575dc9fd0fff0b2094b7f5ee5 |
Close
Hashes for xypattern-1.1.0-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4174f98f73281bcf51ef8190770dc6bd5cdc41a4e65a6637d55d571363ee566d |
|
MD5 | 702394dc55fb99b8c55b3f1e16565d9b |
|
BLAKE2b-256 | b5796441c9dfda3e0db697a18aa7ae9ab1faaeacb434f75bbe6b5d13aa25e82c |