Skip to main content

Enhance plots with the signature Biolizard aesthetic for matplotlib and seaborn.

Project description

BioLizardStylePython

Enhance plots with the signature Biolizard aesthetic for matplotlib and seaborn.

install

1. Extra requirements

BioLizardStylePython relies on the colorspace package, which is not available on the Python Package Index (PyPI). However, it is hosted on GitHub and needs to be installed directly from there. To install the colorspace package, please run the following command in your terminal:

pip install git+https://github.com/retostauffer/python-colorspace.git

Once you've successfully installed colorspace, you can proceed with the installation and usage of BioLizardStylePython.

2. Package Installation

The BioLizardStylePython package is available on PyPI and can be easily installed using:

pip install BioLizardStylePython

3. Font Installation

The BioLizardStyleR package makes use of the signature BioLizard font 'Lato'. This font can be found on Google Fonts under an open font license.

If you don't have the Lato font locally installed, you can download and install it from GitHub.

  1. Download Fonts: Download the two font files from the GitHub repository Nature Grade Visualization Playground.
  2. Install Fonts: Install the downloaded fonts on your system.
  3. Complete: Once the installation is done, you're all set to use the font.

usage

1. Styling Function: lizard_style()

This function applies a BioLizard aesthetic to your matplotlib or seaborn plots. The aim is to ensure that plots maintain a uniform look, irrespective of whether they were made in R or Python.

2. BioLizard Color Palettes

These are qualitative, sequential, and divergent color maps that can be applied to your plots. The palettes are designed using BioLizard's house colors, keeping perceptual uniformity and color-blind friendliness in mind. For more information, consult the help documentation specific to each function.

3. Finalizing and Exporting Plots: finalise_lizardplot()

This function adds a BioLizard footer beneath your graph and exports it to a specified format such as PNG or PDF. The footer includes the BioLizard logo at the bottom right corner and leaves room for source text.

Contributing and Feedback

Contributions and feedback are very welcome and much appreciated.

Issues can be reported on github.

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

biolizardstylepython-0.2.0.tar.gz (5.8 MB view details)

Uploaded Source

Built Distribution

biolizardstylepython-0.2.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file biolizardstylepython-0.2.0.tar.gz.

File metadata

  • Download URL: biolizardstylepython-0.2.0.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for biolizardstylepython-0.2.0.tar.gz
Algorithm Hash digest
SHA256 80cca2ceb761d8cca4b40c4481848d113a1564d8636f418cee8a5a006734f90c
MD5 cb7c6b1982af9ab5ac0d7890ae13e14f
BLAKE2b-256 7bb1302d115063343be3947ef102bf1a46cda60590d4d34dffbb2bbf3c505fd8

See more details on using hashes here.

File details

Details for the file biolizardstylepython-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for biolizardstylepython-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 571dc887184a84538d9c72c3ef1ac9dc9a07b250a64b4373b5a74a27fd8e7ac5
MD5 d0360058dfaaa9d196044d486afd274c
BLAKE2b-256 784f0639d338b825203a2d6fbbdb8713f04182c1105a123a0ec78db5d5854bf0

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