Skip to main content

Library for handling x-y pattern data.

Project description

codecov CI

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


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.2.tar.gz (12.3 kB view details)

Uploaded Source

Built Distributions

xypattern-1.1.2-cp312-cp312-win_amd64.whl (83.1 kB view details)

Uploaded CPython 3.12 Windows x86-64

xypattern-1.1.2-cp312-cp312-manylinux_2_35_x86_64.whl (469.1 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.35+ x86-64

xypattern-1.1.2-cp312-cp312-macosx_12_0_x86_64.whl (164.2 kB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

xypattern-1.1.2-cp311-cp311-win_amd64.whl (82.1 kB view details)

Uploaded CPython 3.11 Windows x86-64

xypattern-1.1.2-cp311-cp311-manylinux_2_35_x86_64.whl (481.4 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

xypattern-1.1.2-cp311-cp311-macosx_12_0_x86_64.whl (161.8 kB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

xypattern-1.1.2-cp310-cp310-win_amd64.whl (82.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

xypattern-1.1.2-cp310-cp310-manylinux_2_35_x86_64.whl (444.2 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

xypattern-1.1.2-cp310-cp310-macosx_12_0_x86_64.whl (90.5 kB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

xypattern-1.1.2-cp39-cp39-win_amd64.whl (82.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

xypattern-1.1.2-cp39-cp39-manylinux_2_35_x86_64.whl (446.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.35+ x86-64

xypattern-1.1.2-cp39-cp39-macosx_12_0_x86_64.whl (91.1 kB view details)

Uploaded CPython 3.9 macOS 12.0+ x86-64

xypattern-1.1.2-cp38-cp38-win_amd64.whl (82.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

xypattern-1.1.2-cp38-cp38-manylinux_2_35_x86_64.whl (458.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.35+ x86-64

xypattern-1.1.2-cp38-cp38-macosx_12_0_x86_64.whl (90.7 kB view details)

Uploaded CPython 3.8 macOS 12.0+ x86-64

File details

Details for the file xypattern-1.1.2.tar.gz.

File metadata

  • Download URL: xypattern-1.1.2.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for xypattern-1.1.2.tar.gz
Algorithm Hash digest
SHA256 1d5742f7c73ab03d278def475657df0733ab91cb0eb94ccf7e735efae0984b44
MD5 54b8a8fc7e53f815b978ed37f1ec64ea
BLAKE2b-256 77100384dcb2ea6fce491eed2e2e3367aead579f1cb1e3a5424cf538266e5732

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e1e4d48b06027e81ccb584ba79536afe133d360a27bf1210558a9f7a35000d16
MD5 604dc2ca42bc3252a4a8a1a7534a0de0
BLAKE2b-256 2d42e5d662d9fa2ed950a008990e7f2dfcb25f0ad69aeaff5f57d3ec039d9867

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp312-cp312-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 acc23c9573ad77d5589745b27eba1bda262d34380b5438eae9d7a460933728d4
MD5 27dac60c50718df2fb332e4b87157278
BLAKE2b-256 cbb30493fa40f749a647eef95f9c343309a40b177b8526acbf43d00688f20083

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 fca31bca21b1b491291475917c7de5701b0f817362f9a8df51c899c8b0569550
MD5 3d2feec173958c324230c316daf6ff31
BLAKE2b-256 2836ccda454a6ee4af1af55c96ee5d27a04fad3e12d945c3f624518c8380c374

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 83310c67388038c58bfb78307d75605bc630cc7122fc3030d432b8707f1dee81
MD5 c63908a7eae294739c87f991963dc262
BLAKE2b-256 647514befcb96c773cfabdea22714380340ea1f6e152840d11e3be81ea4afbd7

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 8eb17870a35aa3706365533ba17d2e15f8ffa6e90dcc53533ebd18c9313da19c
MD5 6a57fd62f474e044c55518107636d73d
BLAKE2b-256 5f7fedd5f086f16cbc2e6c9aded60abedbcac74e111c581eccbe3a3ece55c13e

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 8d39dc3c1b42b5bddd8d04f39f238d009a7f5965aa589fc37eef06f52e0117a3
MD5 f8518f40d79116222ec5aa6320c6b058
BLAKE2b-256 acc57836e2690f91758333ac50182b11e0e6cfc65e4d1b358bd45f5c536ecd8c

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4f6ffd20c462f7b03321cea45011e2edbf4f9112f82be90fc365679ff4b1abf8
MD5 75704c54b31294020f305da515c7a3f1
BLAKE2b-256 47a176c26a6cc94f767148cb45d34756e5102760c9c8d5da73e89bb7275d6f2b

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 ff458486043634950cc7f3fcd651ce5ae3b2a133eba52b9427254ee159bf5690
MD5 7ee62e8278d7f0a01313150bb2629605
BLAKE2b-256 12595c01202fcaec0ce34b8c222764f3b16c384f1da1381a8a057cd30aa95b54

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2f11e33d53f68dfc790bd257bec8d85f10fab6d7a19366dd05bee6386bdd30e2
MD5 aec1864cbb6a9b135d6d4176c9bef5a9
BLAKE2b-256 30d9bd85692f1c75f0d0d4539d9707a509732b5fc03db22d38c6891fe96cdf38

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: xypattern-1.1.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 82.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for xypattern-1.1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 08c2ae85660b99b805874fb701551bb093fadbf4e2074d5b438e54ca5acea077
MD5 6a91785a51c57ce52562d684fd46a2aa
BLAKE2b-256 89a8afb6cc23c99f379a122cfea018e26aa8481cfa2b90d9fa0606c643f6e839

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp39-cp39-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 1ac0f700453dd3f9133b21639507381c90bd24f9708fa7ca2c407d8486d5f7d5
MD5 17cb919219cb3de32b6aad8f055a7d05
BLAKE2b-256 d1fa5c122059228899248bdeaa8637b34f0b1cca2c5f16f9b2229e0bef8ff5cf

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 3560c6cb92034756561ee20184cfe140006b2e6aa77757f2f276e049ca6bcf6d
MD5 90311739f40105adce42a1cfc5a18668
BLAKE2b-256 749d1f87c99eb7632d19ab43f69450313c532cedcf2a017a503ce16a62ba6b9b

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: xypattern-1.1.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 82.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for xypattern-1.1.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b9082f160800804074bcb0444d319371fea5e8dcf7adf96d8f39178466088717
MD5 855b1c41e446810cfdfc1d94e4456c10
BLAKE2b-256 57499fc334104993064933ab497b870e46c4eff155d302c05594e5dd13f30762

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp38-cp38-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 e72655eb5af3d78fb80b2cf4136c7d5ad28aacc3597a07ee54c302fc9072862e
MD5 234311874311da2dfd002d68ec77b169
BLAKE2b-256 38cabc20511e31ec50a349f48b8bb8f733d8ae545c860048b23c766ecb886b60

See more details on using hashes here.

File details

Details for the file xypattern-1.1.2-cp38-cp38-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for xypattern-1.1.2-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 585ab9dd1f17a48d6334f820c3c13c52ced4b4931796861b52c6dab8b5c2cdc5
MD5 4f1a230a7b97ca16b0a50e5b0342fa77
BLAKE2b-256 b32cffa90ab769e28effe6ec804ab0ab7001172411c5a4cc8c2a90b45ead2417

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page