A carrot-based color palette you didn't know you needed.

Overview

A package to produce a carrot-inspired color palette for python/matplotlib.

carrot_palette

Install: pip install carrotColors

Update: pip install --upgrade carrotColors

Usage:

import carrotColors as c

my_cmap = c.CarrotColors.get_carrots()

An example:

Carrot_Example1

Also now with Mulberries:

mulberrys

my_cmap = c.CarrotColors.get_mulberries()

And for those of you who like your color palettes perceptually uniform, here is the perceptually uniform version courtesy of empet:

my_cmap = c.CarrotColors.get_uniform_carrots()

You might also like...
Digdata presented 'BrandX' as a clothing brand that wants to know the best places to set up a 'pop up' store.

Digdata presented 'BrandX' as a clothing brand that wants to know the best places to set up a 'pop up' store. I used the dataset given to write a program that ranks these places.

An easy python calculator for those who want's to know how if statements, loops, and imports works give it a try!

A usefull calculator for any student or anyone who want's to know how to build a simple 2 mode python based calculator.

Scientific color maps and standardization tools
Scientific color maps and standardization tools

Scicomap is a package that provides scientific color maps and tools to standardize your favourite color maps if you don't like the built-in ones. Scicomap currently provides sequential, bi-sequential, diverging, circular, qualitative and miscellaneous color maps. You can easily draw examples, compare the rendering, see how colorblind people will perceive the color maps. I will illustrate the scicomap capabilities below.

Print 'text color' and 'text format' on Term with Python
Print 'text color' and 'text format' on Term with Python

term-printer Print 'text color' and 'text format' on Term with Python ※ It may not work depending on the OS and shell used. PIP $ pip install term-pri

A new mini-batch framework for optimal transport in deep generative models, deep domain adaptation, approximate Bayesian computation, color transfer, and gradient flow.

BoMb-OT Python3 implementation of the papers On Transportation of Mini-batches: A Hierarchical Approach and Improving Mini-batch Optimal Transport via

A simple single-color identicon generator

Identicons What are identicons? Setup: git clone https://github.com/vjdad4m/identicons.git cd identicons pip3 install -r requirements.txt chmod +x

The goal of this program was to find the most common color in my living room.

The goal of this program was to find the most common color in my living room. I found a dataset online with colors names and their corr

A lighweight screen color picker tool
A lighweight screen color picker tool

tkpick A lighweigt screen color picker tool Availability Only GNU/Linux 🐧 Installing Install via pip (No auto-update): [sudo] pip install tkpick Usa

Coursework project for DIP class. The goal is to use vision to guide the Dashgo robot through two traffic cones in bright color.

Coursework project for DIP class. The goal is to use vision to guide the Dashgo robot through two traffic cones in bright color.

Comments
  • carrots colormap is far from being perceptually uniform

    carrots colormap is far from being perceptually uniform

    Because nowadays python graphics libraries are working with perceptually uniform colormaps (matplotlib viridis, plasma, inferno, magma, all cmocean colormaps, and more) I analysed your carrots colormap with ehtplot, https://github.com/liamedeiros/ehtplot, a tool developed by scientists involved in the EHT (Event Horizon Telescope) project. This Python module was developed before the publication of the first black-hole image. ehtplot asseses a colormap and if it isn't perceptually uniform in the color space CAM02-UCS, it can uniformize it. More precisely, there is a function that converts the r, g, b color-coordinates of a colormap to lightness, chroma and hue, as coordinates in the CAM02-UCS space. and then plots the three corddinates vs the normalized data values. A colormap is perceptually uniform in this space if the lightness is a linear function of these values.

    In the first image posted below, the upper cell illustrates the representation of the carrots colormap lightness in this space. carrots_cmap

    The lightness graph is colored by the colormap. Unfortunately it is nonlinear, and moreover the three heatmaps that ususlly can reveal other drawbacks of the colormap, illustrate in the first heatmap the effect of lightness nonlinearity (distinct color bands). The second and the third heatmap reveal that we cannot distinguish dark colors in the displayed squares. The low values of normalized data are represented by almost the same dark color.

    I uniformized your colormap, with lightness between 20 and 95, and the second pannel illustrates how uniform_carrots colormap looks like. carrots_unif Here https://github.com/empet/Datasets/blob/master/unif_carrots.txt is the array or (r, g, b)-color codes, representing the uniform_carrots colormap.

    opened by empet 2
  • problem with uniform carrots

    problem with uniform carrots

    Trying to use the uniform distribution on a simple array but it returns only black. Non-uniform cmap is fine, but would like to get the uniform working. Mulberries also works as intended.

    image

    Below is my test code.

    import matplotlib.pyplot as plt
    import numpy as np
    import carrotColors as c
    
    # making an array
    raw_image = np.array([[1,2,3,4,5,6,7,8,9,10],[20,18,16,14,12,10,8,6,4,2]])
    
    # new colour map
    my_cmap = c.CarrotColors.get_uniform_carrots()
    
    # initialising figures
    plt.figure()
    plt.imshow(raw_image,cmap=my_cmap,origin='lower',interpolation='nearest')
    plt.colorbar()
    plt.show()
    
    opened by PARobertson 1
Owner
null
TB Set color display - Add-on for Blender to set multiple objects and material Display Color at once.

TB_Set_color_display Add-on for Blender with operations to transfer name between object, data, materials and action names Set groups of object's or ma

null 1 Jun 1, 2022
Glyph Metadata Palette

This plugin for Glyphs3 allows you to associate arbitrary structured metadata to each glyph in your font.

Simon Cozens 4 Jan 26, 2022
Like Docker, but for Squeak. You know, for kids.

Squeaker Like Docker, but for Smalltalk images. You know, for kids. It's a small program that helps in automated derivation of configured Smalltalk im

Tony Garnock-Jones 14 Sep 11, 2022
Islam - This is a simple python script.In this script I have written all the suras of Al Quran. As a result, by using this script, you can know the number of any sura at the moment.

Introduction: If you want to know sura number of al quran by just typing the name of sura than you can use this script. Usage in termux: $ pkg install

Fazle Rabbi 1 Jan 2, 2022
A repository containing useful resources needed to complete the SUSE Scholarship Challenge #UdacitySUSEScholars #poweredbySUSE

SUSE-udacity-cloud-native-scholarship A repository containing useful resources needed to complete the SUSE Scholarship Challenge #UdacitySUSEScholars

Nandini Proothi 11 Dec 2, 2021
Code needed for hybrid land cover change analysis for NASA IDS project

Documentation for the NASA IDS change analysis Poley 10/21/2021 Required python packages: whitebox numpy rasterio rasterio.mask os glob math itertools

Andrew Poley 2 Nov 12, 2021
Appointment Tracker that allows user to input client information and update if needed.

Appointment-Tracker Appointment Tracker allows an assigned admin to input client information regarding their appointment and their appointment time. T

IS Coding @ KSU 1 Nov 30, 2021
A collection of simple tools that proved to be needed for hadling large periodic calculations with the VASP software package.

VESTA-tools A collection of simple tools that proved to be needed for handling large periodic calculations with the VASP software package. distTotCalc

Ilia Kichev 2 Dec 14, 2021
This is sample project needed for security course to connect web service to database

secufaku This is sample project needed for security course to "connect web service to database". Why it suits alignment purpose It connects to postgre

Mark Nicholson 6 May 15, 2022
github action test, because I dont know it.

mad-y testing testing pip install -r requirements.txt add the DISCORD_TOKEN value to your env vars. and run mad-y how to Deploy ` docker build -t mad-

Mit 1 Oct 29, 2021