All Projects → AstroBarker → mplcolors

AstroBarker / mplcolors

Licence: GPL-3.0 license
A command-line information tool written in Python 3.x to display matplotlib colors.

Programming Languages

python
139335 projects - #7 most used programming language
Roff
2310 projects
Makefile
30231 projects

Projects that are alternatives of or similar to mplcolors

gpu mandelbrot
Interactive Mandelbrot set on GPU with Python
Stars: ✭ 33 (-2.94%)
Mutual labels:  matplotlib
databricks-notebooks
Collection of Databricks and Jupyter Notebooks
Stars: ✭ 19 (-44.12%)
Mutual labels:  matplotlib
chatstats
💬📊 Fun data visualizations for Facebook Messenger chats
Stars: ✭ 18 (-47.06%)
Mutual labels:  matplotlib
tapmap
Command line keyboard heatmap generator.
Stars: ✭ 19 (-44.12%)
Mutual labels:  matplotlib
Udacity-Data-Analyst-Nanodegree
Repository for the projects needed to complete the Data Analyst Nanodegree.
Stars: ✭ 31 (-8.82%)
Mutual labels:  matplotlib
Engezny
Engezny is a python package that quickly generates all possible charts from your dataframe and saves them for you, and engezny is only supporting now uni-parameter visualization using the pie, bar and barh visualizations.
Stars: ✭ 25 (-26.47%)
Mutual labels:  matplotlib
texfig
Utility to generate PGF vector files from Python's Matplotlib plots to use in LaTeX documents.
Stars: ✭ 58 (+70.59%)
Mutual labels:  matplotlib
recursive-voronoi
Recursive voronoi diagram
Stars: ✭ 43 (+26.47%)
Mutual labels:  matplotlib
distinctipy
A lightweight package for generating visually distinct colours.
Stars: ✭ 125 (+267.65%)
Mutual labels:  matplotlib
datascienv
datascienv is package that helps you to setup your environment in single line of code with all dependency and it is also include pyforest that provide single line of import all required ml libraries
Stars: ✭ 53 (+55.88%)
Mutual labels:  matplotlib
Singularis
My System Configuration ⚙️
Stars: ✭ 27 (-20.59%)
Mutual labels:  matplotlib
python-data-visualization
Curated Python Notebooks for Data Visualization
Stars: ✭ 22 (-35.29%)
Mutual labels:  matplotlib
trackanimation
Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data.
Stars: ✭ 74 (+117.65%)
Mutual labels:  matplotlib
mpl-probscale
Real probability scales for matplotlib
Stars: ✭ 27 (-20.59%)
Mutual labels:  matplotlib
introduction to ml with python
도서 "[개정판] 파이썬 라이브러리를 활용한 머신 러닝"의 주피터 노트북과 코드입니다.
Stars: ✭ 211 (+520.59%)
Mutual labels:  matplotlib
hh research
Автоматизация поиска и исследования вакансий с сайта hh.ru (Headhunter) с помощью методов Python. Классификация данных, поиск статистических параметров.
Stars: ✭ 36 (+5.88%)
Mutual labels:  matplotlib
covid-19
Data ETL & Analysis on the global and Mexican datasets of the COVID-19 pandemic.
Stars: ✭ 14 (-58.82%)
Mutual labels:  matplotlib
dufte
📈 Minimalistic Matplotlib style
Stars: ✭ 196 (+476.47%)
Mutual labels:  matplotlib
matplotlib-backend-kitty
show matplotlib plots directly in your kitty terminal
Stars: ✭ 73 (+114.71%)
Mutual labels:  matplotlib
Neural-Plot-Development
A Library for visualizing Neural Networks of the TensorFlow/Keras models.
Stars: ✭ 16 (-52.94%)
Mutual labels:  matplotlib

mplcolors

A command-line information tool written in Python 3.x

Tired of searching "matplotlib colors" every week/day/hour? mplcolors is a command-line information tool written in Python 3.x which can display matplotlib colors, colorbars, and has a few other useful functions. This uses matplotlib.colors to get color names and RGB values and prints with ANSI escape sequences. Finally, given a matplotlib color or hex value, mplcolors can return the RGB color complement.

It can also print all of the built-in colorbars.

matplotlib colors

Compatibility

This requires a terminal with true color support. Notably, Mac's Terminal.app does not have this and so the colors cannot be properly displayed. I'm not sure that that is a workaround for this. On Mac I suggest switching to a different terminal emulator with more modern support such as kitty, alacritty, or iTerm.

Requirements

You just need a Python distribution (3.x) with matplotlib and a true color compatible terminal emulator.

Installation

Direct Installation

  1. Clone this repository git clone https://github.com/AstroBarker/mplcolors.git.
  2. Run make install inside the script directory.
  • MacOS make PREFIX=/usr/local install

OS Packages

mplcolors is hosted on the Arch User Repository. On an Arch-based system, you can do, e.g.,

yay -S mplcolors

Alternatively, you may create an alias in your shell's rc file (e.g., ~/.bashrc) such as

alias mplcolors='python /path/to/dir/mplcolors.py'

although this will not install the man file.

Usage

After installation, you may run

mplcolors

to print the default matplotlib colors.

You may display all of the available xkcd colors by passing the option -a or flag --all.

To search for the RGB complement to a given color, use the -c or --complement flags followed by either a matplotlib color or hex. If using a hex value, the "#" can be given or withheld.

mplcolors -c "12ab84"

To search for colors containing a given string (e.g., "red"), then you can run:

mplcolors -s "red"

To display all of the built-in colormaps, use the -b flag ("b" for "bars") or the --colorbars option

mplcolors -b
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].