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.10.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.10-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lipstick-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 008dd5e22a5c1044b8caa831f64fc6dd8e3495b832a2b6b060797618c2834ea6
MD5 3b9727789bed56b6787d87069967f76a
BLAKE2b-256 8e32b9149876dbeca6d9ac9ef968fca0fe50735c0f24cbe4cf80ba7293315d75

See more details on using hashes here.

Provenance

The following attestation bundles were made for lipstick-0.0.10.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.10-py3-none-any.whl.

File metadata

  • Download URL: lipstick-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 74a3fee7b3ab20ad912916dd727826f8f3a600a60e3c1653408aa12ef149fb7a
MD5 bfa95c914d08a29bce9431f2906f34e3
BLAKE2b-256 a6e9d0ac8ebeaf23ed3657210c6e97d11dbbfcfcb8fc2e8417474189d5e7bbca

See more details on using hashes here.

Provenance

The following attestation bundles were made for lipstick-0.0.10-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