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.1.tar.gz
(80.2 kB
view hashes)
Built Distributions
Close
Hashes for xypattern-1.0.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c1988489d37c3d3d4fac66e04873d760fb691b574e86cdd4d82bd863323d1d9 |
|
MD5 | 56becf81017b0780029f67560cfd4239 |
|
BLAKE2b-256 | d0d5bdf940cc8ada1cef62557a8ae9120c5f38fbffd30276107fd55c94e3c2cd |
Close
Hashes for xypattern-1.0.1-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50d8c61101e2181ff5b350ab3572a56235501235d552216ff22e09ccefb25b9d |
|
MD5 | 811503e9d246898bef71a987526cbdd8 |
|
BLAKE2b-256 | 87e1dbb955a7c97390a9296723939e97687138939adeda336399f755c006febf |
Close
Hashes for xypattern-1.0.1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 679dff38cfec178e12ac665a41439bd4e6bd1364f48c74617d57168f55d02151 |
|
MD5 | 0a5f58dc7a53b2445494a6a2e0d38261 |
|
BLAKE2b-256 | 95a8408d16fc2d28440d9b471d3b8970378d6315910defda094ce8d2a95702e7 |
Close
Hashes for xypattern-1.0.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ffc31bec31c93e81e550d0d9fbeba951ad8467e1d61730ac29034f8a18d31e |
|
MD5 | 33c5838688b072b8c7512b3a5b4959ff |
|
BLAKE2b-256 | d6e5a045885e60c08c19696fb763efadc9a2cea87edf53feec86de3997a958c3 |
Close
Hashes for xypattern-1.0.1-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621de164d9db27c82700d36e435a2e64ddff4f684d63bcb730de99467bfac599 |
|
MD5 | 1b9826803d947570bb7c7ee5bbcb733b |
|
BLAKE2b-256 | 4bffb792afff91c2237ff969cf61d60b29a0d45b42b5147cdcdd2463160b680a |
Close
Hashes for xypattern-1.0.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd3792451a1376e0448724e02a8afaf29afbdd8d5373208cce7f5d422d00843 |
|
MD5 | 86837aa28a16b1652c31a77793c8ba74 |
|
BLAKE2b-256 | f4d8b4dc6c9db71eb1089bb3f33b3ae65a1b7e1bcf320f171c1a7ea5af2d56bb |
Close
Hashes for xypattern-1.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de53fc60cf8d50afeb61556b55d80c2dbc77997d48fac1aed4681529a5b3554 |
|
MD5 | f7d4a2c2fb887283f0a71ca874c9bf57 |
|
BLAKE2b-256 | 1e4d6650526cf39940daec35be1d2ccd86ec3dce6286e611b2873da86dc5fd19 |
Close
Hashes for xypattern-1.0.1-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e973b1fc7ea18e82e2ac35f28f742b092039cd6a0cde12be0e2b63d568383bd9 |
|
MD5 | 93ebfa8965c61c6e82a3c76e7d922f43 |
|
BLAKE2b-256 | 53b3ff11442c3726732aea0c213402cdaf85c18d388ee782aa040f807dda89b2 |
Close
Hashes for xypattern-1.0.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b2586228733c360231f745f2a3a5d98eea4d53116c5fe1d8d76c09d98fddd3e |
|
MD5 | 9ba06ad5de7934216e38a2c61ea72a75 |
|
BLAKE2b-256 | 56fa4471942d04477a20ee9bf42e39cd64fe56aae41e963cb0cd8585d101d8ce |