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

Uploaded Source

Built Distributions

lick-0.5.0-cp312-cp312-win_amd64.whl (99.5 kB view details)

Uploaded CPython 3.12 Windows x86-64

lick-0.5.0-cp312-cp312-musllinux_1_1_x86_64.whl (579.6 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

lick-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (578.2 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

lick-0.5.0-cp312-cp312-macosx_11_0_arm64.whl (105.1 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

lick-0.5.0-cp312-cp312-macosx_10_9_x86_64.whl (113.7 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

lick-0.5.0-cp311-cp311-win_amd64.whl (97.9 kB view details)

Uploaded CPython 3.11 Windows x86-64

lick-0.5.0-cp311-cp311-musllinux_1_1_x86_64.whl (576.4 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

lick-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (573.6 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

lick-0.5.0-cp311-cp311-macosx_11_0_arm64.whl (103.4 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

lick-0.5.0-cp311-cp311-macosx_10_9_x86_64.whl (111.3 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

lick-0.5.0-cp310-cp310-win_amd64.whl (97.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

lick-0.5.0-cp310-cp310-musllinux_1_1_x86_64.whl (538.5 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

lick-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (537.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

lick-0.5.0-cp310-cp310-macosx_11_0_arm64.whl (103.5 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

lick-0.5.0-cp310-cp310-macosx_10_9_x86_64.whl (111.5 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

lick-0.5.0-cp39-cp39-win_amd64.whl (98.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

lick-0.5.0-cp39-cp39-musllinux_1_1_x86_64.whl (540.3 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

lick-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (538.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

lick-0.5.0-cp39-cp39-macosx_11_0_arm64.whl (104.3 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

lick-0.5.0-cp39-cp39-macosx_10_9_x86_64.whl (112.2 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: lick-0.5.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for lick-0.5.0.tar.gz
Algorithm Hash digest
SHA256 15e6bf4483bca19ee0ca5fc10547c46823cae1ee05d9ce3a6c3387a9ca040b38
MD5 d16de48af69999a6120c287078f39ba5
BLAKE2b-256 49765914febf9a3cab06ced20f8060a187b15c3cb56d5bc92ca47b0bebd48284

See more details on using hashes here.

File details

Details for the file lick-0.5.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: lick-0.5.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 99.5 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for lick-0.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c0e6c69026c7bf0a805242c664342fdaa55665e09dd31d5fcfe223aed04a4b6b
MD5 fbb162c7d5dd81dd16a927f29a385c47
BLAKE2b-256 8a6b24d4f4f56ffd40968ab6a1cc2ed7ac87ca19b630881d0d08c495311b1a52

See more details on using hashes here.

File details

Details for the file lick-0.5.0-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.5.0-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 b08fd00ded9c4c977398973fb7012c76bedfa9d70f1d474f081c108c7392196a
MD5 d74e314345130f03edc3c17cc564476b
BLAKE2b-256 e4ac261ae2a62e73e51eb6a966ab2e12251dbe5ffbcc6b116ca96d5e3bced8d8

See more details on using hashes here.

File details

Details for the file lick-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bcb07c78d306cc2834b79e661ddcb7552da5dd587f178bc3a2a557160af2c34d
MD5 ad5d78f99737ab363be046726bc2500e
BLAKE2b-256 a20176b1c86517f02ac02669b92027c569ea950fc9bc453a65e9c18f2a1da06e

See more details on using hashes here.

File details

Details for the file lick-0.5.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lick-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0703c2311a983542257495cd5eac7f56000d28c75c24df1132bcc8da4063c2ee
MD5 f656d6cff6eed496be82100d53f6c40f
BLAKE2b-256 a883561faaff1373d603cbfdefc0d6585469d51d7199b139b4932c850eb5e799

See more details on using hashes here.

File details

Details for the file lick-0.5.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.5.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 867cb1a10e38ee53396294042531e412a8a5158b644a1d0018f01d45ecf3a457
MD5 13dbdcd7d884f23e7fe3bcf57a5b08b9
BLAKE2b-256 7a3017e617168a3b2780bf525ef51723ed514d152f4ace8cf9078580b46acf6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.5.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 97.9 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for lick-0.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b2b9f7fc3f464d7ab6cdd24e129f9e82bd90b88f06854402c0aeb4031abab025
MD5 a0c27e5f218336975c38ec9dcfc28a8e
BLAKE2b-256 9eb6d21eb7c88457bc954b7674c74c011e5c2a9257961f941b7995fbb08495c6

See more details on using hashes here.

File details

Details for the file lick-0.5.0-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.5.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 67619c5d0040fed9c21e71486567c08ca4979f0f38a15361a1b78343c25ae045
MD5 cc67273ffbb99c4ed7ca43831f2ad25c
BLAKE2b-256 2c5979ebbbb59b05114626c49eeaccb1638b985d60c57944ddbbc9abe82bb531

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d3c17f415c2aeff2e3340cb80caf30a5f1ddb8d1c50f9257fd3aa650e140ae9
MD5 f950eb3a1e7c9080b2a1e21a5e35b282
BLAKE2b-256 6a6e78402fa192ae26a880df239bfe6c4a41fd5ad5d5ac03fe55da4a48828ce7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 972714d2146f638c9d6afeb3ca226d8b88cee588e2e1e01717236bfb676b0c88
MD5 4fa5e1a4939477404bfb8096712ec6f3
BLAKE2b-256 77b19c35c14a13c3933450c400fe19cdcfbffa3303ee6e9e4d882c2651a17ee2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.5.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5770c7f6d1121d9ff90e10d887f27678ccb1f92f167e20afe299eb54c831eb75
MD5 77bc424a7a177e4cb13c8d2c4de92d42
BLAKE2b-256 e8ac1b7412d85d3c5cb4a1eae929690822c949af21853a0e5da77bfc0a9f55c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.5.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 97.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for lick-0.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 14ad10736d9482ae93beaf4872d60b4ee1ef0fc1595935dbe0db643d5a2e9fba
MD5 ebaf758b8040b5bfe8694ce9d7544b79
BLAKE2b-256 21a688312bcb45d53d96ca895b59bdae3e55ce6083e1f4747bfa3ec253e0b4f0

See more details on using hashes here.

File details

Details for the file lick-0.5.0-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.5.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0cdd283b673402ce9420bd5f31203a47e94b53d09e04e9a1fc8ca6ba6d6d1894
MD5 8863572fa261948cb8e3ce2876fcb394
BLAKE2b-256 ab5460cd68a85903ff4369c209b581654e98efd0acf68ff4b2c7ce774aba32e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 22f0e037f4054a22ece0d407e556382ccdea22c7dad510ba8d125151670e7098
MD5 9a218d74c6cdc229d0edcd1cb923f36d
BLAKE2b-256 74dbb2ff4f17d2c92bfb73864e9f7f4d9fcdf8e9c45cffd9ec0ff433259a96d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76fc09a5ec37b74bbfa4444af67ac934fd6b88cc86d869e374a569451360f4a5
MD5 4a463ba795101c16c02cbd4e53b17043
BLAKE2b-256 22653e299ac32a7baa6b74cb48c15a8f0d6f351929dc2460a8bfd81fdcb8f839

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.5.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 342dabef95e3ecd00e54e66e6e49452074c73938d85eb125471c89a4e27de9b0
MD5 f76ff6683bdc2075caf6ef2c26e6d655
BLAKE2b-256 c43f862c5441cce140a5107ead4c086ada0e3c7849d8addadc22f49111c51e40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.5.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 98.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for lick-0.5.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 65d8de18fa7532622343ffc36d19cf75d26b71b3c59490b64356a3573183a6e4
MD5 8d2fff2d7a28375a0889df2849e4f2bd
BLAKE2b-256 533b9245c5e66471e7d95e09fe886909244cd78eaf3ac2701919c640d41c69c0

See more details on using hashes here.

File details

Details for the file lick-0.5.0-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.5.0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 8dfe2c482f93cb7487f4fc9555367e92c661c420b20a5118c48161d541377c1a
MD5 8dab39ce6508695dd83e24ab840999e8
BLAKE2b-256 0eadb8cb0eb0f0be8ff2d9dd662acd18009053bfcb9a571f8f9ffc0f343a3f20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a73a8178f8276fc680a7f6058f58a102c8783d50241b6e0f15f42795342b04fb
MD5 7a4677dfbfb7532decbe3a9a2a35486a
BLAKE2b-256 7987536ca16525b9fa309ed0f79365a266ed0b159b13c0f520ebb020389c59d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.5.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d574a40804ed0d68b66218e3979d02d72742ae3191c914d042015688b1b202de
MD5 99fa322bba356dbda4833899923b3b9c
BLAKE2b-256 1d576118846b9028c7716e57400be0e34dd5c26c7161a696294228a8950a74b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.5.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3a6906797cc13fa114a0e783931364204ddf13a4364fbf0da2bf45de55841be1
MD5 7049da3a6676614e782f960ff16093d4
BLAKE2b-256 8572c0e57d329ceed998f2baae5c3550b4c7a0686b8c378b50cfd10c2b5df724

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