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.5.tar.gz
(11.6 kB
view hashes)
Built Distributions
Close
Hashes for xypattern-1.0.5-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d3e9b0cae9970f663b02d5d4b6af6620fb9980299a4e7052f0dfca26d1f1fa2 |
|
MD5 | 346e38303edcd7b183445b550f57d00b |
|
BLAKE2b-256 | 158b8fe23b522592a90204b237665760de6c829155e2d9f0871bc00543ba707d |
Close
Hashes for xypattern-1.0.5-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 063bd0f7020ac834014480636f1eab42488e97505b0867f0ef9edf89065f3403 |
|
MD5 | e23824619ebe7380d7561e35bead80f9 |
|
BLAKE2b-256 | 4d2df2d95db8e18f7c3052b75d25ae71d2ffa5c6a560b62365274dc3f996e33b |
Close
Hashes for xypattern-1.0.5-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31af070108d2c552760f5469d4b5553acab3fac57d146f9ca23cf65ef085f93e |
|
MD5 | dfa65dac59baf82a141b669ad337c28a |
|
BLAKE2b-256 | da15830a9853675392538b934a3f4b4c1d4aa20e354d35be795ede80da71294c |
Close
Hashes for xypattern-1.0.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 412a6bb9511893cb80e29a9b97795901f35e8cd9ecbe562ce74e54eb75c082b6 |
|
MD5 | c75f6f7bfa17c1097c7cf687edebd89b |
|
BLAKE2b-256 | 125b801c96a4fc20aec23acf9e3e39e06b98b913b54496cfd28fa81db40848de |
Close
Hashes for xypattern-1.0.5-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 302e60028d7c381796cc17c785d2570888ae669430535c3b9b8b1a088dc30e6f |
|
MD5 | 95e8cfe534f1fae637a6c24ab6bf2fe4 |
|
BLAKE2b-256 | b678a7a0be81d9afef491cae9fd69e04b8e18ceec5aa81a6270f30f8ca95bccf |
Close
Hashes for xypattern-1.0.5-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a0ee804c567e4310cef81c038a84e6d2079a8fa7fc2aa152fcddda23849ceb2 |
|
MD5 | 05b5667ad31a47085dc3020a5fd91a42 |
|
BLAKE2b-256 | 55116d44ded5a2779e62b6bc77885384644ef180aeea6f9f7b15bf00b7cb547e |
Close
Hashes for xypattern-1.0.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c82ba2f2c2f0e4e335d69931c5d1e21dda006e6dcbf447ecdda91721184b7f |
|
MD5 | 71ab10a81f66db8588878565f1659402 |
|
BLAKE2b-256 | 833c649ec7a980edbdeca543115ebfe54492a828e1638f21c59dae22c10faf98 |
Close
Hashes for xypattern-1.0.5-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46a19d046ac1eeee3338ef1494b99f4359d21bce0dc59aba45aae028a26ac2fa |
|
MD5 | 65ff4a3673bdf2af1457f0aa4151f09d |
|
BLAKE2b-256 | 273105b764482e82dea133e5397c9983e13ce6548293f0ab3ce66471dd28e5d7 |
Close
Hashes for xypattern-1.0.5-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56dfa0423085442346d869a65de1ad00efe63b38ee67f0cc5b9665734a0bf41b |
|
MD5 | 66149c4343bcffa3a02f0a83b1a1cd23 |
|
BLAKE2b-256 | 4a4de17d9e1cdfcc7de13edc5c4dceaf16045121bc55dbf8332b738251b04013 |
Close
Hashes for xypattern-1.0.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 369a2affcb29258dcb815351fc72b773d10ffca44dec918b5bdcc3c1ec3ead24 |
|
MD5 | c699918907c1ea46eeb912ada5b56d2d |
|
BLAKE2b-256 | 710fac550e446066454fb7016663f65fe13f8bc190db00d61491e5801ca8fbd6 |
Close
Hashes for xypattern-1.0.5-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d1d8066b89b06a3298894bc436d14761330b75c8df68c4223c64097aa126762 |
|
MD5 | 2870dec0b0f6acea7dc4632a2925a58f |
|
BLAKE2b-256 | 4ffcb6b956813c108b1cf29504fd91d99695ad1eac781b115afd38797ff3099b |
Close
Hashes for xypattern-1.0.5-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f7b0a6125b2c50ce6755d10b9bef6f5cf1166cc2ac78570c2725c57767b481c |
|
MD5 | 4b877b60be065d657b0161740c5c019e |
|
BLAKE2b-256 | 7822227ab2a30fc7fda83f9b30d41a7cfc04dd36477acaa5ff730362e0c4a4d2 |
Close
Hashes for xypattern-1.0.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e2065ea6a75f4cfde639e5e40a0ace7f82e43ab153d0577320549acd9ee0e8a |
|
MD5 | 66e0c33736c212e055555e3b31763c11 |
|
BLAKE2b-256 | ddb808d9840023fb628dd22f7ca46f64f2a50d38c0ea344d6681aeb8ee58e937 |
Close
Hashes for xypattern-1.0.5-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37093317cc8f3f64d48ff28fe5581877b840d4003774917338b7553271e0d8fd |
|
MD5 | e9037cf9f999d4b6594ec3b32b6e213d |
|
BLAKE2b-256 | 470fd42e080a6168b0bf7c0ce3e5711be6b6db4c78442b698c001c42b9daef83 |
Close
Hashes for xypattern-1.0.5-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b50edfe91e727c8a1176442dfbade87fd2adb0bbc3ef7923702d8d2b1621fedf |
|
MD5 | 209857766843ce0f819ee412f87709e6 |
|
BLAKE2b-256 | 8d9bd0c8139fa1630ddfeaee12c7e2f242db81731c88ebf4df105e2f8aecc7ff |