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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

lick-0.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (490.8 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

lick-0.4.1-cp311-cp311-macosx_11_0_arm64.whl (87.8 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

lick-0.4.1-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.1-cp310-cp310-win_amd64.whl (85.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

lick-0.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (469.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

lick-0.4.1-cp310-cp310-macosx_11_0_arm64.whl (89.0 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

lick-0.4.1-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.1-cp39-cp39-win_amd64.whl (86.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

lick-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (478.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

lick-0.4.1-cp39-cp39-macosx_11_0_arm64.whl (89.0 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

lick-0.4.1-cp39-cp39-macosx_10_9_x86_64.whl (98.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

lick-0.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (480.2 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

lick-0.4.1-cp38-cp38-macosx_11_0_arm64.whl (87.8 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

lick-0.4.1-cp38-cp38-macosx_10_9_x86_64.whl (96.8 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: lick-0.4.1.tar.gz
  • Upload date:
  • Size: 151.2 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.1.tar.gz
Algorithm Hash digest
SHA256 f2ce7721731bdbdf43cd9e0af495730dda8c6e430c8078bc61980a3cd1441917
MD5 ea3c4f7879582626dcc976f36c6404c9
BLAKE2b-256 6193bd15d77278a32a15faec1a3d74f212ed45f0509aa8f5c1063b27b6031b25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.4.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 619a2af49288431e22f9363b847563bbb234b31359aca15fbf350c8d8706d380
MD5 cbfd33d0b656941a422a1770260a5657
BLAKE2b-256 58eab2f275e740ea46f3afdc7f6d297d1df6a7540ac27f48dc6a617d7e2ee414

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5aac1de1fbaa3dd9e25df4ab3722a1fff51f2a34f73c5e5e948ac3c34c352927
MD5 f47a382580e9b962b12aeed0d0c2b414
BLAKE2b-256 36458217e0d27411793e86edc390043f88e329a5bde918367c04b526f8a6afd5

See more details on using hashes here.

File details

Details for the file lick-0.4.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lick-0.4.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20109b87ca19ecebf896d6749ac7b6ceb38719a654f2e10157df286f7481c18e
MD5 da9eff5a5412121f64e91704bf9e6504
BLAKE2b-256 3f9c39838a51f3e0dcc9c2630d0df520d2862975bae88cb40e8774ccfadecd33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 633a29b229e6d42a17959e557e0aacf99ee0da4de6eed3b3bf038b4aeac6b6aa
MD5 64142dfeacff38bf4c76946c0e0974fa
BLAKE2b-256 2fb40c141ffb1ae623892765353691cea8c4640cd7491f3cba7bf7e0c883297c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.4.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 85.6 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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e0b34d3656b50876303dc2b7bc641e59e3e74401760a79ff10a5e47345977767
MD5 31bf4385969f808aa606e39ea039c803
BLAKE2b-256 a95695f1445248bf6369c36f43cdff2fc2e40ccf12280768ff54a9a21227344a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 67937b3018e184c7cf1b8fcbb949298b96bfc9b8d71dcf070dfe5bbfca5d0c0d
MD5 d2fc8a5c11aadd31b09405bb47ede81a
BLAKE2b-256 1d366d2a0801ed5b73a550c1fa5c36c34a73b648e29f465805130002a195ff3d

See more details on using hashes here.

File details

Details for the file lick-0.4.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lick-0.4.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a289fccf8bb3038832fccf3d07209cdf1b75a89fcbf3e1193462de247e94617
MD5 12563631038b7a76e1be68797e8f366d
BLAKE2b-256 18ec3dd9113620c68de3a7884c1179e026ee0b0aa9346c89bc00b2f8876d104b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3b5896aa31ea1543d010ba32f9fb7781c5d8002262beb908d7ecee1c138928d0
MD5 196b5728f858112b7ada56235a35c712
BLAKE2b-256 a7c0873ed448f50680e0c364707420b7b3532d7d368fcb9d464c40d8690b84f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.4.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 86.5 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.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3766f39b88805539586e89b83c65c0d808989e8bf596aacc0e0f97bdffc59200
MD5 a4fea9e7a06cc5d8377ba8def554179a
BLAKE2b-256 467b3b0690a7c8194859c4f918feffef1880ebd54b714f97aaf37d31faefb4c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ec568bb47adf83c17b6f73023302e75aff2c744759753a964a0a587e4550acd5
MD5 0d45f7edd61826798cecd80b205f4e5c
BLAKE2b-256 17d099fdfe78c6ff861ad32cc35d697bbae9681e1b7809f2e229a7be0e478026

See more details on using hashes here.

File details

Details for the file lick-0.4.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lick-0.4.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8afd6b44007220358cde3a7ae0f195471cf13affb26a081c5e174639d7091f97
MD5 a8004a8327a06f78f95e3fecfe92339b
BLAKE2b-256 938439d882b50a810c3dbc124345bb3c7bed8b0a4f6898e099b7a48dc5d1dc6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7946b65aba8fc652d0c02df0112de7e3326efd34a2d3f081507aa7ab77118b4e
MD5 d3659bc7fb463a33aaf39c8d7685dc99
BLAKE2b-256 c915abb25692ebd7361546f4c3ff3b45174845e6c7b671493f617fe62b64a523

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.4.1-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.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ee18348e594ff5f9629d27039cf3bb4fa1ba376d37e60d4f25e5b0e58bf557fa
MD5 e50ac19ea44856105c22f0245c9f7adc
BLAKE2b-256 f3caea5f163adbbb38c039dfddb61e83887a0f9ce34083d830febb7a0570d02b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7fdebe71168888988400309551449038bb0daaafcd79d9e2f15b0810fec83c87
MD5 ff8f89d6a68301f1d6ed46f38164b27b
BLAKE2b-256 423879cf28ae3127cff2e535f932f87cbeb45a342aeebb8f6f12298a3b7a31c3

See more details on using hashes here.

File details

Details for the file lick-0.4.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lick-0.4.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e722653658147f4ab521fd1d9a5eb6b3215194346d101ade8959b8abd2a47789
MD5 3f89fd64e91cf219a18c45537f37bd50
BLAKE2b-256 3be4d74c1a277220f6e89503eebdaf24707c3232018507bb2c2262b0aed57e1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6527ddbef00b517f292a9ea23a1da6111f20ea92d8c175ef3ad6e2ffa7e7b673
MD5 46ea2c7897741442363aaa27a812efc0
BLAKE2b-256 685aa4341677e57ffd3db001e0d2cb4e869752640de73c6a2032c60b8851ab98

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