Skip to main content

Package that uses a Line Integral Convolution library to clothe a 2D field (ex: density field) with a LIC texture, given two vector fields (ex: velocity (vx, vy))

Project description

lick

PyPI PyPI pre-commit.ci status Code style: black Ruff

Line Integral Convolution Knit : Package that uses a Line Integral Convolution library to clothe a 2D field (ex: density field) with a LIC texture, given two vector fields (ex: velocity (vx, vy)).

Authors: Gaylor Wafflard-Fernandez, Clément Robert

Author-email: gaylor.wafflard@univ-grenoble-alpes.fr

Installation

Install with pip

pip install lick

To import lick:

import lick as lk

The important functions are lick_box and lick_box_plot. While lick_box interpolates the data and perform a line integral convolution, lick_box_plot directly plots the final image. Use lick_box if you want to have more control of the plots you want to do with the lic. Use lick_box_plot if you want to take advantage of the fine-tuning of the pcolormesh parameters.

Example

import numpy as np
import matplotlib.pyplot as plt
from lick import lick_box_plot

fig, ax = plt.subplots()
x = np.geomspace(0.1, 10, 128)
y = np.geomspace(0.1, 5, 128)
a, b = np.meshgrid(x, y)
v1 = np.cos(a)
v2 = np.sin(b)
field = v1 ** 2 + v2 ** 2
lick_box_plot(
    fig,
    ax,
    x,
    y,
    v1,
    v2,
    field,
    size_interpolated=256,
    xmin=1,
    xmax=9,
    ymin=1,
    ymax=4,
    niter_lic=5,
    kernel_length=64,
    cmap="inferno",
    stream_density=0.5
)
plt.show()

vectorplot

The core LIC implementation was authored by Anne Archibald, and is forked from https://github.com/aarchiba/scikits-vectorplot

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

lick-0.4.0.tar.gz (151.0 kB view details)

Uploaded Source

Built Distributions

lick-0.4.0-cp311-cp311-win_amd64.whl (84.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

lick-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (489.8 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

lick-0.4.0-cp311-cp311-macosx_10_9_x86_64.whl (96.9 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

lick-0.4.0-cp310-cp310-win_amd64.whl (85.5 kB view details)

Uploaded CPython 3.10 Windows x86-64

lick-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (468.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

lick-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl (98.4 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

lick-0.4.0-cp39-cp39-win_amd64.whl (86.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

lick-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (477.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

lick-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl (98.1 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

lick-0.4.0-cp38-cp38-win_amd64.whl (86.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

lick-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (480.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

lick-0.4.0-cp38-cp38-macosx_10_9_x86_64.whl (96.9 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file lick-0.4.0.tar.gz.

File metadata

  • Download URL: lick-0.4.0.tar.gz
  • Upload date:
  • Size: 151.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for lick-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9086bb8608924e3bd4e104ad1a216defccc745857eaede9c67e78a14f5fb7911
MD5 52a49a1074f44d2c80e551f48a0b3b30
BLAKE2b-256 5cd906f916360e37bf95cdb0682f70f4049f4449bfc8ffba593dad31ec706779

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: lick-0.4.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 84.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for lick-0.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 434109752fb719bcf176b88d78156dab50c8aa39ef5465089ce4e43afa4cb295
MD5 c2a94b901abee5ea045e801fc369cef9
BLAKE2b-256 d2b80769f48e9aeb732f71f9506ee30e494240ea1248bdab2e0c24d8f1e69306

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d01fb264812c7b613724dced01e590308977f994420e0947e125ff0722f4c80b
MD5 0ac8e7e3f79cc2ad48f7b6b108809120
BLAKE2b-256 bf27da908dc1e8d96a325355786555535997f32c0fa26752b31c54b27f94a7f1

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.4.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 818881f00256e27fd123f4f4349ff6b48d18f0bf3faaca91667617fa7c7dbade
MD5 8288b54f05f8668746477472c3b30956
BLAKE2b-256 a88394444b859b276f3759069af099ba0ed5a5f1ec9c91c1c40ed4258519009d

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: lick-0.4.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 85.5 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for lick-0.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 be1a5b768bcc6e11ecc10c15a2661d70c5a74327e8d4aa7f1812167d9856dacf
MD5 3efb4898f030f87c68f89c506561b5d1
BLAKE2b-256 98b9a90ba7ee4cd3bb6ec2c26a094dd93d89274495a9c8d175ec64f0be75b1dd

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d057df16ea7038feec480ed675b623eca1258816d11aa2b389a9d81df1f4162d
MD5 5046f7a29922154ba27535262dbed4ce
BLAKE2b-256 c42c991d13809d32b9381c53f50da50117dc25df12f91ae9a17af8a83e87ce67

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 27ec6cb723862c11bf5fca4bbe6e834ec46919570498fedc920529f3e4a575c6
MD5 38ff94fb484a30f4a7af07078c6d94b3
BLAKE2b-256 2db4a325f63cee29fd698ab8b9bbecefc2b43abc0deff520e99629c62a6f594b

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: lick-0.4.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 86.4 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for lick-0.4.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 32c3cca26b38c6fcd177031f7bed350dd1a6be39ecf58117f507c316e48f2b05
MD5 2210ab74bf1a9533c97375c75a4d6e2a
BLAKE2b-256 11d9170dbb6d666437086d9f9644bda9448d356ea1286e668989d8d987142df2

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4cf737cf18eefeb8f95933057bf9da15bff080a5cccf7075f94c2b398761ad50
MD5 3cb82cc83861ea74162af5614cf6b9a5
BLAKE2b-256 2a0a86d70d162fbca16cf8849f46edcf6fb3b57a682b237eb472c3cf92c68b02

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1b72e72be53dc24f558499e7523515d1622363288fd938775f53182fe7235222
MD5 121b66a3c6744b22596ee79ad36aec43
BLAKE2b-256 10de891bdf2e84c69755d6961afb7e8cbe1b736130f3f268f89401268858ea95

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: lick-0.4.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 86.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for lick-0.4.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bea6bb7cf99ffd3a3f94ad9852743bec7f931d2894d990ffe736fb3ac6f433a9
MD5 5e0e6ce0b256ce041d0731e6209af9e5
BLAKE2b-256 f8031b548aa264a9f4d87fe85adf7e4557ba4afc38e8999868019a719962e643

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2851f64f176795291aa4b77769998b2f1010dfd6baa062a395b4d0c63b2931a7
MD5 47198d2e3f358e0031b2017b2e433b50
BLAKE2b-256 f49d8318915d4bb21c91b173bb0438498487d1bc86c42aed16a9703590e735a4

See more details on using hashes here.

File details

Details for the file lick-0.4.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.4.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 041bb75bc3565b5e58906f6d87d09af21cd686c4e7a8a628c32591f9ce162cb9
MD5 72cad466047a2014e9225e5a58ebb601
BLAKE2b-256 ed36f9a52a4785bcc7640d0e8d6712f53e1d3eec0be87a85b533c3497a9b13f4

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