Skip to main content

A collection of plotting functions.

Project description

Lipstick 💄

Lipstick is a simple, lightweight set of tools for creating beautiful visualizations. Just apply some lipstick to your data and you're ready to go!

Installation

Install the latest version of Lipstick with pip:

pip install lipstick

or install the latest development version from GitHub:

pip install git+git://github.com/mohammadbashiri/lipstick.git

Example usage

Creating a gif

Creating animated gifs is easy with Lipstick.

``` python
import numpy as np
import matplotlib.pyplot as plt
from lipstick import GifMaker

with GifMaker("sample.gif") as g:
    
    for i in range(30): # go through the frames

        # create a figure
        fig, ax = plt.subplots(figsize=(2, 2), dpi=150)
        ax.imshow(np.random.rand(3, 3))
        ax.text(2, 2, i, ha='center', va='center')
        ax.set(xticks=[], yticks=[])
        
        # add the figure object to the GifMaker
        g.add(fig)
        
g.show()

Updating the displayed figure in a loop

You have a loop and you want to update the same figure (with new results) as you go through the loop? You can also use the update_fig method:

:bug: Report bugs (or request features)

If you find a bug or would like to see new features, please create an issue or make a PR :star2:

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

lipstick-0.0.9.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lipstick-0.0.9-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file lipstick-0.0.9.tar.gz.

File metadata

  • Download URL: lipstick-0.0.9.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lipstick-0.0.9.tar.gz
Algorithm Hash digest
SHA256 677f7e94b7f13c0ac10c0d9e09bddc27fb116d8c31258ccb86c4004bf955c57d
MD5 479cb71c9f043bd331b99c258916e573
BLAKE2b-256 d77f220165d62d1cc2c89ad31c65c43772bb6294e91b88c326628c4aee950543

See more details on using hashes here.

Provenance

The following attestation bundles were made for lipstick-0.0.9.tar.gz:

Publisher: publish.yml on mohammadbashiri/lipstick

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lipstick-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: lipstick-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lipstick-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b5655a0cc14f72fdc46c9afe68e4e30220c972f6ba14ebdc21a50902dd568726
MD5 330ca359eb13ca34c33e32434092ce14
BLAKE2b-256 9f35ed883f2cf729ef735bb4d899b094357b74b43bb7bef6db86bb42f3c90b4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lipstick-0.0.9-py3-none-any.whl:

Publisher: publish.yml on mohammadbashiri/lipstick

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page