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

Uploaded Source

Built Distributions

lick-0.4.2-cp312-cp312-win_amd64.whl (99.4 kB view details)

Uploaded CPython 3.12 Windows x86-64

lick-0.4.2-cp312-cp312-musllinux_1_1_x86_64.whl (580.6 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

lick-0.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (582.3 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

lick-0.4.2-cp312-cp312-macosx_11_0_arm64.whl (104.2 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

lick-0.4.2-cp312-cp312-macosx_10_9_x86_64.whl (113.4 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

lick-0.4.2-cp311-cp311-win_amd64.whl (97.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

lick-0.4.2-cp311-cp311-musllinux_1_1_x86_64.whl (578.7 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

lick-0.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (575.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

lick-0.4.2-cp311-cp311-macosx_10_9_x86_64.whl (111.0 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

lick-0.4.2-cp310-cp310-win_amd64.whl (97.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

lick-0.4.2-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.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (533.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

lick-0.4.2-cp310-cp310-macosx_11_0_arm64.whl (103.2 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

lick-0.4.2-cp310-cp310-macosx_10_9_x86_64.whl (110.9 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

lick-0.4.2-cp39-cp39-win_amd64.whl (98.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

lick-0.4.2-cp39-cp39-musllinux_1_1_x86_64.whl (540.1 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

lick-0.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (535.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

lick-0.4.2-cp39-cp39-macosx_11_0_arm64.whl (103.9 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

lick-0.4.2-cp39-cp39-macosx_10_9_x86_64.whl (111.5 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for lick-0.4.2.tar.gz
Algorithm Hash digest
SHA256 ea4eb1a04c31bf8e8541afbbfebfe33747e025b5cb8eaee0031a9d8e51c43baf
MD5 2a33d2e7837ddfbcecf7af922b3efc9d
BLAKE2b-256 c4bc4fd8a975b6a709585dccc75a1b4ad31fc33599a36a0de38a5a45502d6032

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lick-0.4.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a95ed9f503d6abfdd73a8cc9a647a4aa97344d9919417571c929691093fe57be
MD5 a4ed7177e1d270aead19acff8525d6ed
BLAKE2b-256 580b530fbbe8de5167802ae4a42e36c8f92cd836dc189b4cab86087106f4c7e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 11f220e7c0f5fcccded085c18455c796d267507beeefa9545b31be5881ccdcc7
MD5 98258f9a1e4d7d041766448f290e2e05
BLAKE2b-256 00366e141b61a8c79b706a6f3368ade291f51f62bf11ac702355ef0202ea48c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f6d2152bee20af06c50c07c4e00fa7f89264b080f96c59529700dc06bcc25e38
MD5 a76095616dcfbde91612c3bae146fe73
BLAKE2b-256 8688205482c7cdcc294d361711918d6765a313f862cf4e6784b361c160deefe2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca07b650a15b5babb795a481410698258203b25daa2f1399d2b26f1dca0e4ad0
MD5 506f4769789b7a79cdb48a9e712974a3
BLAKE2b-256 956210c9ac820fe2b1ff4a08598fcec029419b5dec7a5ce749a8c9b7c317af8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f33cecc6bb8885fc92d4b119d31a6c9a5dbe3c0d2631e2709c059ac058daa312
MD5 fb6ea5196ff277d8b77f012b2d0e24a9
BLAKE2b-256 cea010e8f3fe874e64e341e7c24618b0cc11fab2c6c163a3d33cbdbb5b08c5e0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lick-0.4.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d3436ef0eccdac2c189688ed208879f5e044d9154928336c0102441e3c526360
MD5 d9fc4240565707aaf68d578c12a9d0bc
BLAKE2b-256 eaaecc8170507348fa57a8f1ce805ee1ee2bd88ab47aacb4e62085c209500c20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 8e243bf509e62e594ca75001f78fa9b8a6e75fc357ddc3bc2b55cec589db69ce
MD5 cddc8338feef778c0be2f5fdae158bc8
BLAKE2b-256 8852cff2bec715d7a3180d3f0169312872afc8cad6cd43070ab9d5e67562eb1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aef7a1edfedda4a2b7e593ca4a2a36684f1396062beb554745c51bf38f38e95c
MD5 fc0a7084a86726eac01396abe8e23b12
BLAKE2b-256 2dc0d5f0277dd92b8530bfcd7b428291edf14bdd61e1971dcf24de1de17187f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78bf6b031fd219130d5331c51f73f631c3f8cf269bddec6ee3be45537438fb3f
MD5 16d506b8ffb755f502d2ae4e929abb44
BLAKE2b-256 2357fd6b453cc56ca805db8019cd7ae6dd05676b5956221c650886055c630cbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 37ce768f1b5ba79d7719d9d9aad49091173080f033f1dece48355f127f907ced
MD5 536edfbe273783d55ac271f420b11856
BLAKE2b-256 e1a44e1ec28f078b3ef3b5b8543479954b529d15ad40e47671f739174e8e32ad

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lick-0.4.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 19adb15a724370a91c1caa7a85f911c6401a1c229d9097a1530c68622674e9b0
MD5 acd9bcd1f6035e0c06fdb85dd8c326d1
BLAKE2b-256 1a9802557c671bef9ad21e08cda1e6f8003f7b8221c977d7fa4b645bc61ef0a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 26c2aed26cdcfa775596cb4584a19a0afb329cfe028639dd7ca4785564a6d49d
MD5 e179eec9e3912d6c41309446714fb7e9
BLAKE2b-256 610b2b47f999b125d5570ebb16ac8aa1f1458483794825587b81026a43afea6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 25e43853c3986d1ceaca3310090630f704077ac3b13fb2e2c0f55c14c44f4037
MD5 eb76d20edba952931d53e1615c57f147
BLAKE2b-256 f7bca9216098aae079c9413f3a938b940be16fcff02e83c0b5885fb6b0dd750f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b552c339db21802e168a20feb5c61ade4909f62126920c80d8d2a1ca4cb6eb03
MD5 2537da7f352bb02a4daf811d6ee9c35e
BLAKE2b-256 b067c38a6e05e59985075aeccfb315c301993a738f34975df6a655ea6f1a934f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 794cfcd845fe3b3684f1a8c0590f5ef6b266fccd8b56f23231efd0081fd41bda
MD5 be4109c52f0d4b1784c98e66dc5217d4
BLAKE2b-256 61ebda02d9b6b67e207d806b8c35d64669b7859340263c664fabee5671aa8470

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lick-0.4.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fd61524beabd59055a53d5b7d128df7ba9634aa02c31db26395be10438b3c6ad
MD5 b63b7b5061f82f53783c3adefa6e3b03
BLAKE2b-256 e5825cf426677ec306feab4a743af9d476d4e7a111bc4d6331ca603388b1144a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 85adda5c3c7c174e5e4d2a6fc90a4e7bc16ea2a12e51ad9bcdf6c807f011fe7e
MD5 ab5ef68e4d85929adbf827f48aa7075c
BLAKE2b-256 bb93492cf11f3793d05e3e13181c2c79b6d7bfafee6111330a8c4fb4043d47d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 839e4b16b842698e2c9080d8367093d616a319f6f79864dfd3625291fc24f05c
MD5 66b4b3ee10457cd65748e8acf3f714ce
BLAKE2b-256 531583ab05a74daad667f50343324e6c9fcc794cd0a29256cb68461e1c51cc3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 971c555899639d7ad086046cb3bd885838920557b78ee8fa922ebad17399ba9a
MD5 24155122848d967458ee8e5b7a7006b6
BLAKE2b-256 24f725bc8e13f70f2dcca61217fd1e4734bbcee7da545386966ddbf1249224d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.4.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 945dfabdf7a17d221933d4ddd6624f703eb88ff59013303ed5e335ef4569c33e
MD5 8b96c185d7166742ba9427380c91a916
BLAKE2b-256 bbfc832f9b1f4d7297bc717ae3c90163b41a5341521f98c303160d01c1250c95

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