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.2.tar.gz
(80.1 kB
view hashes)
Built Distributions
Close
Hashes for xypattern-1.0.2-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a88d98f6ece2a49f59f2fb00275d55e9f8b4414c35f7af91b641d7147e661868 |
|
MD5 | 858b5a4182afcdf10d2da1acfaf71ec4 |
|
BLAKE2b-256 | 9b5dd98749f3ef52efa0a3b13a1e2e6c2208946d60cca41b8471a7dcd6b396eb |
Close
Hashes for xypattern-1.0.2-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49766a6810769803e9c19193e77907cd8fd653123dfd544d68ace06cd1e6c092 |
|
MD5 | d12b5d76ea0a9fbf6ee46c7317c10759 |
|
BLAKE2b-256 | 73b7f6436525c6037da964beb5603305aa9e67ad68a2cee326d26ae0c775c3fc |
Close
Hashes for xypattern-1.0.2-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636ddb8f5cacbd976079aaa49b2a1271abbe6dfe04db633028e5edc4b7070445 |
|
MD5 | f37755d8faa7f315e527cad77e8fb05f |
|
BLAKE2b-256 | a06cbbe6fa291a59fd82be59c9a519d03512bd3c389e79427fea825c39b830a2 |
Close
Hashes for xypattern-1.0.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1193d04fdb1706158dd164191188aa6ec96a75e85c8f0fff596b44fa5290471 |
|
MD5 | 80957eec4b6a8be5b44ffff6d0eefc17 |
|
BLAKE2b-256 | ab3f82667ddba987ee6548024779cd744e5bb82c3373e922ccbfba3ce1692602 |
Close
Hashes for xypattern-1.0.2-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540792a5545ad1b07b2589ceb8ffc5042437b4df4561988d54f31da5692ed5f0 |
|
MD5 | bea5c30fcd7e55443e08e0f239513679 |
|
BLAKE2b-256 | 9d40c039da17b6cf8508aa20e6752678c2b9167f7d85ff19d336cde9545a5c63 |
Close
Hashes for xypattern-1.0.2-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9fed6d402cedae2d48aa036dd2e515783bd0b7f507e758f62afaeba7fa476bc |
|
MD5 | 57d3a8db38d544f8a81663b362d0a16f |
|
BLAKE2b-256 | 2359f060a08661762422c988859d7454589d4ff3e9b8cd2b94b034155144ac8f |
Close
Hashes for xypattern-1.0.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8f773ce64270a6a921c5d72e544a9331e984091f0093cacac7acc5bb931338d |
|
MD5 | e9e6cb46f503b972823c4a3c277ca220 |
|
BLAKE2b-256 | 7a1d5a36bf7587fdc49263c1c47021803008b3fdd1b3d2215d3901875ed54e59 |
Close
Hashes for xypattern-1.0.2-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12c538432025158de97ad4065c7b0feda6651ae2fa9af5108b66bddee130c3e |
|
MD5 | e0e1abfc1ed265fa138b43fac000d6db |
|
BLAKE2b-256 | 9176a153951907689ec2b0f70d364721152a299e79732e82ecf04c4c65e3bdad |
Close
Hashes for xypattern-1.0.2-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7f9b0adb81fe4e8776246a9280de7a40bdfc97988200ea394a9f3b1eb9962fa |
|
MD5 | 5ee311e117cdfc4192b0bc7bc92031a5 |
|
BLAKE2b-256 | 4d595a267ca40ea8ce92fe0445c18ad8a1ae691a240b80b72db41f64f52e0937 |