DoriMG / py_fishualize

Python version of the R fishualize library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fishualize

Color Palettes Based on Fish Species This is the python version of the R package made by Nina Schiettekatte, Simon Brandl and Jordan Casey. Find the R package on their GitHub page. All credit to them for the dataset and the idea behind the package!

Installation

You can find the package on pip:

pip install fishualize

Usage

To get all the possible fish options, run fish_palettes()

To create a colormap, use the fish function. Several parameters are available:

  • n_colors: the number of colors you want the colormap to have.
  • option: the fish you want the pallette of (can be either int or string).
  • alpha: the alpha of the entire pallette.
  • direction: the direction of the colormap (either forward (1) or reverse (-1)).

About

Python version of the R fishualize library

License:MIT License


Languages

Language:Python 100.0%