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

Uploaded Source

Built Distributions

lick-0.6.0-cp313-cp313-win_amd64.whl (99.7 kB view details)

Uploaded CPython 3.13 Windows x86-64

lick-0.6.0-cp313-cp313-musllinux_1_2_x86_64.whl (598.3 kB view details)

Uploaded CPython 3.13 musllinux: musl 1.2+ x86-64

lick-0.6.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (569.4 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

lick-0.6.0-cp313-cp313-macosx_11_0_arm64.whl (102.9 kB view details)

Uploaded CPython 3.13 macOS 11.0+ ARM64

lick-0.6.0-cp313-cp313-macosx_10_13_x86_64.whl (109.6 kB view details)

Uploaded CPython 3.13 macOS 10.13+ x86-64

lick-0.6.0-cp312-cp312-win_amd64.whl (100.1 kB view details)

Uploaded CPython 3.12 Windows x86-64

lick-0.6.0-cp312-cp312-musllinux_1_1_x86_64.whl (578.2 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

lick-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (574.9 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

lick-0.6.0-cp312-cp312-macosx_11_0_arm64.whl (104.0 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

lick-0.6.0-cp312-cp312-macosx_10_9_x86_64.whl (114.2 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

lick-0.6.0-cp311-cp311-win_amd64.whl (98.3 kB view details)

Uploaded CPython 3.11 Windows x86-64

lick-0.6.0-cp311-cp311-musllinux_1_1_x86_64.whl (576.1 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

lick-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (570.0 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

lick-0.6.0-cp311-cp311-macosx_11_0_arm64.whl (102.3 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

lick-0.6.0-cp311-cp311-macosx_10_9_x86_64.whl (111.8 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

lick-0.6.0-cp310-cp310-win_amd64.whl (98.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

lick-0.6.0-cp310-cp310-musllinux_1_1_x86_64.whl (537.8 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

lick-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (534.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

lick-0.6.0-cp310-cp310-macosx_11_0_arm64.whl (102.6 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

lick-0.6.0-cp310-cp310-macosx_10_9_x86_64.whl (112.1 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

lick-0.6.0-cp39-cp39-win_amd64.whl (98.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

lick-0.6.0-cp39-cp39-musllinux_1_1_x86_64.whl (539.3 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

lick-0.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (537.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

lick-0.6.0-cp39-cp39-macosx_11_0_arm64.whl (103.1 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

lick-0.6.0-cp39-cp39-macosx_10_9_x86_64.whl (112.7 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: lick-0.6.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for lick-0.6.0.tar.gz
Algorithm Hash digest
SHA256 58cc03091c7338606d451c3bb663b2e724edd3d8052a764740b598cefee71699
MD5 41b42bdf0657e6100474433b20c5b269
BLAKE2b-256 da6246aa9de4fa603ba32cf26fe8acc191f65367b8809d156cc4e5a383c6a2ac

See more details on using hashes here.

File details

Details for the file lick-0.6.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: lick-0.6.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 99.7 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for lick-0.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8c5b051e38a7d548e522825ae2ad4706861f5ab4c8aefa4eb5fdeea1acde2b9a
MD5 a55208e19d565e7a69b5e02f57ad9124
BLAKE2b-256 a0b0383bc914443f797dfd24c2bdcee62d49f5606993154b3bbbaa20c2685dc4

See more details on using hashes here.

File details

Details for the file lick-0.6.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.6.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8a792604e8b2c6687997ea1a146f4e381a9e0ebfefcf61753b613a586a165a87
MD5 f05477acf80513549960c3f393633290
BLAKE2b-256 ddef92b564e129fc1ff0a9cdb895feb4e6b9cef94211129c309e74d785ddd99b

See more details on using hashes here.

File details

Details for the file lick-0.6.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.6.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 16524d30a7733f30c40cb59f283bbbf1b6ceb006c62417210a9355d72416a663
MD5 4a593768f6cd0068ebc76afa62a600be
BLAKE2b-256 2e817a6b02f0039041ef4324b6359db6c0a7fa3a04efd40ed40b7e7af35f45e3

See more details on using hashes here.

File details

Details for the file lick-0.6.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lick-0.6.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 743a7df8ee7419216da88ca3fb191915dff9f1aedb926458b45831d851edd686
MD5 a5adeeb4af61570187b86c8d9bc7f010
BLAKE2b-256 5180015f0259497dcfdcb1fa79713d69bd2bc56d5cce8be6064d7274dbd18f7d

See more details on using hashes here.

File details

Details for the file lick-0.6.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for lick-0.6.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ce278cfc4fefd6bc4a0dfe670d3ee79c703c7d1d76acae1c817f652b87e0e826
MD5 056693b80a387b1c37a78f4ce57c164b
BLAKE2b-256 f40c6d0eafa3d81fb136746091884045978686bc28e75e7f90f99dd99b7a11f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.6.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 100.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for lick-0.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4f0797e88fd8f2268f8c580bcc678c9a62f3e33e5d6f6cbccd1d2175bf185c2a
MD5 c6c8c2a092fae571f91e78957d07a131
BLAKE2b-256 e4b284623eec2bda99e7edc08583d40ef553f9ccd4d15714b552af1c6f231ce9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 5aa1f2de420963b1e069076643b6fdb9313eda0ce6ddebe77e7f01733c98071d
MD5 3ba407b0c2e8810bbc8c9749510599b0
BLAKE2b-256 7364280304e81e7ad617656064516eb45aa534414657227f5a2dfaacefcf8f7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e34de7fe1ca36d4aaeb0427805d2019e6342a086ef01fb2a2bd504226c67ed15
MD5 c84b19e55d2a938b429782243cefc8a9
BLAKE2b-256 df18aef9c995d4400213ce9d7f851f964aea70ab3d1a6d108b857ef07876cb3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edd24e6bc9535ee92376c4a31edb7256d9008ccbdb741d2fc324ce1dab88bd22
MD5 13451af1a330a09fadc7af973c13e92d
BLAKE2b-256 7cb4cc1ff9ccf437a60b91c108612eb5494b56de3255ea9e7413e424c261d1fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 92e69dd283a7593dd7888700320bd12be415a3beda45195d4353de6da963d829
MD5 69b1afd67988d692175beaba7e2753af
BLAKE2b-256 9229f36e3ee5cb65b0e54e30c4fec2fa10d0649aa5adf28f8998d087277c4040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.6.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 98.3 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for lick-0.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6978e3d01e92f7a5043940928848dc44a61f6a70d6cf867667d7ca49e9fcc0fb
MD5 a6f17988bf09a7ad99a5363f9d70a18f
BLAKE2b-256 6865a505e6b98f668e4eb634b2ec74fce79c4e4b3fd218b62d5ca81ca00231bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cdf1fc9df9bf1957076d94252210fa68133553a309d5806ab867c03128b3b1aa
MD5 8aba4480fdc41b32cd6fe44e2cb366b2
BLAKE2b-256 9a546414e428cf8caa54f87f6bf1571085ffcbe8991ad2446e34d8ca921645e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1275627d63b50e001c115b63c70d968b9894d85af9333ccf26456855e3ed0fe
MD5 e0f7b6be474c4125f3e5a991f430bff3
BLAKE2b-256 f3e2282f45fc0357a9c85560fcee71fdc9600d0f444778aedf6b51a53997fe7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c697b83f6e2650990a4b6e310c42f6a5bff942dd75ac1c06ede1e513266b6b98
MD5 3bd8207f252f76138c914c31f745e77f
BLAKE2b-256 2554e8ae3b6f0b443be3f764bbc5720f003c2be0b5f352ffb0d7f95fe5c22754

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3cdc094e80eee5c91b7e656503f30bcdc2154d0ccc2f4bf4c329e7e1e8c7706b
MD5 321f58b42d3bebda3c7c604d179b272e
BLAKE2b-256 31909c18ce7d30cfb5da590c176e363f7651e3c61656b1fd7f4fe497a8cd4bc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.6.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 98.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for lick-0.6.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b087a3e27daad9eb066cd7c68acf8590478a46a9f87d22302d51d9742a511718
MD5 8be99a584a1242aade730d2953ff9718
BLAKE2b-256 8437fa4d66d6958cc296f3d14bdf3cea1996c2df35df868a32ebcc07179632eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 651562c770df5ab50e8fab5b2e66341fa17a2c2517398beadac4e067b9a499d1
MD5 83d62af92ed5f08d697b699fdb1d8566
BLAKE2b-256 16e0a48e32bc8960cd846a9d987ceb5abd6571ebcaf67d50c67bcece3d7f10a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 774e8872a72b21b5713d76bf2861d976b30bb8cbad0ad2d6eeb803a6a58a7780
MD5 028d18bbbfb01d4d04525baaf1d30649
BLAKE2b-256 aea29e1b3fde5f2b54dbcde71edb93e974ccac0957748eab4a08b09de0b53f58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1ede53e7658d7beec4a42fb69fa2e3e086e33bd9c63802694a00eb5e821ccc5
MD5 151375126174b6c7a00823d20f672bc7
BLAKE2b-256 d1c21ce9bb7980f504f490e93eb9232c9eeaa73096722ec04f2d70d332bea949

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3d987566d949f7c8bbc79e934702c57dce2ae710331566645405a8efb97adbe6
MD5 5fb33275897af22b6546511080295c4d
BLAKE2b-256 0e1fac9ff82a546fa787dcc35fadaea04d746c34bccdf0eb162b2648b2bb19ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lick-0.6.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 98.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for lick-0.6.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 04f3d9d3fc7979f6abfc7c02ed821596618211f022f8ce20a722cb4de15ca267
MD5 4da0542dbaef481254ac7ba288478b77
BLAKE2b-256 0db1642d477aec2eccfa759f824d55a5ede7d26288becdec5893acffec5ae62d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 1badfcf4ac657f92ff53843106f4b54956eca6aacbec8ea83cf0fa16f34e88e0
MD5 32375aa4857f81fec0e4d82d085cfd6d
BLAKE2b-256 697a077995be3ec15fa60d81ae2db588bc33f8daa7883e2ee1b8383f8c631250

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86a90d513151effe0b73fc1017a551d83079de0950779493af17b50f7e6388c0
MD5 cc4d1f6bc8cd466f834b9fe5a929de80
BLAKE2b-256 db9d588ffa98f56c93287b69a2c5406290f888c70c8563bd459dda48352841d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c270bd96ac461bc4d88894b7aea25a247d1f74398169bca3bf70895c0106be4
MD5 820361ef36e094bb0de15e164c77778d
BLAKE2b-256 ee384a842d43bacb21d7659193768e08361a167120ac16d1d999b28b7e7882a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lick-0.6.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 06c1e91e6b6cf53396bd6356d5cf602ee735a3ffe95f5a85b4e0bd1dcd222b7a
MD5 8a4393c4c4ce11098cd9a28ea9c45750
BLAKE2b-256 5f31617e45268afbea37bea17e3085e78a26726dbceb79fa3e7892d82b0911c6

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