Matplotlib colormaps from the yt project !

Overview

cmyt

PyPI Supported Python Versions

CI pre-commit.ci status

yt-project Code style: black Imports: isort

Matplotlib colormaps from the yt project !

Colormaps overview

The following colormaps, as well as their respective reversed (*_r) versions are available

Installation

python -m pip install cmyt

Usage

cmyt integrates with matplotlib in a similar fashion to cmocean or cmasher

import numpy as np
import matplotlib.pyplot as plt
import cmyt  # that's it !

# generate example data
prng = np.random.RandomState(0x4D3D3D3)
noise = prng.random_sample((100, 100))
x, y = np.mgrid[-50:50, -50:50]
z = 5 * np.exp(-(x ** 2 + y ** 2) / 1000)

# setup the figure
fig, ax = plt.subplots()
ax.set(aspect="equal")

# now we can refer to cmyt colormaps as strings
im = ax.pcolormesh(x, y, z + noise, cmap="cmyt.arbre", shading="flat")
fig.colorbar(im, ax=ax)

# alternatively, cmyt maps can also be imported as objects
from cmyt import pastel

fig, ax = plt.subplots()
ax.set(aspect="equal")
im = ax.contourf(x, y, z + noise, cmap=pastel)
fig.colorbar(im, ax=ax)

A gallery of comparable examples using all colormaps from cmyt is available in the test directory.

Comments
Releases(v1.1.3)
  • v1.1.3(Dec 24, 2022)

    What's Changed

    • MNT: upgrade pre-commit hooks by @neutrinoceros in https://github.com/yt-project/cmyt/pull/83
    • DOC: simplify Python version requirement declaration by @neutrinoceros in https://github.com/yt-project/cmyt/pull/84
    • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/yt-project/cmyt/pull/86
    • TST: switch CI to Python 3.11 by @neutrinoceros in https://github.com/yt-project/cmyt/pull/87
    • BLD: migrate static metadata and tool configurations from setup.cfg to pyproject.toml (semi automated with ini2toml), adapt pre-commit hooks by @neutrinoceros in https://github.com/yt-project/cmyt/pull/88
    • ENH: delay importing colorspacious by @neutrinoceros in https://github.com/yt-project/cmyt/pull/89
    • REL: bump version to 1.1.3 by @neutrinoceros in https://github.com/yt-project/cmyt/pull/90
    • REL: fix auto-publish workflow by @neutrinoceros in https://github.com/yt-project/cmyt/pull/91

    Full Changelog: https://github.com/yt-project/cmyt/compare/v1.1.2...v1.1.3

    Source code(tar.gz)
    Source code(zip)
  • v1.1.2(Jul 27, 2022)

    What's Changed

    • BUG: fix compatibility for matplotlib 3.2 by @neutrinoceros in https://github.com/yt-project/cmyt/pull/82

    Full Changelog: https://github.com/yt-project/cmyt/compare/v1.1.1...v1.1.2

    Source code(tar.gz)
    Source code(zip)
  • v1.1.1(Jul 16, 2022)

    What's Changed

    • TYP: add py.typed marker file to improve downstream type-checking by @neutrinoceros in https://github.com/yt-project/cmyt/pull/67
    • TST: upgrade image testing/reporting CI by @neutrinoceros in https://github.com/yt-project/cmyt/pull/70
    • TST: start testing on Python 3.11 by @neutrinoceros in https://github.com/yt-project/cmyt/pull/73
    • MNT: drop support for Python 3.6 and 3.7 by @neutrinoceros in https://github.com/yt-project/cmyt/pull/76
    • MNT: cleanup now unnecessary version checks for matplotlib by @neutrinoceros in https://github.com/yt-project/cmyt/pull/77
    • ENH: optimize import time by @neutrinoceros in https://github.com/yt-project/cmyt/pull/74

    Full Changelog: https://github.com/yt-project/cmyt/compare/v1.0.4...v1.1.1

    Source code(tar.gz)
    Source code(zip)
  • v1.0.4(Dec 29, 2021)

    What's Changed

    • TYP: add missing type annotations by @neutrinoceros in https://github.com/yt-project/cmyt/pull/63

    Full Changelog: https://github.com/yt-project/cmyt/compare/v1.0.3...v1.0.4

    Source code(tar.gz)
    Source code(zip)
  • v1.0.3(Nov 30, 2021)

    What's Changed

    • ENH: future proofing for matplotlib 3.6 and beyond by @neutrinoceros in https://github.com/yt-project/cmyt/pull/37

    Full Changelog: https://github.com/yt-project/cmyt/compare/v1.0.2...v1.0.3

    Source code(tar.gz)
    Source code(zip)
  • v1.0.2(Nov 11, 2021)

    What's Changed

    • ENH: only parse sys.version_info with if/else blocks by @neutrinoceros in https://github.com/yt-project/cmyt/pull/57
    • TYP: fix incompatible type with mypy + numpy, upgrade pre-commit hooks by @neutrinoceros in https://github.com/yt-project/cmyt/pull/58

    Full Changelog: https://github.com/yt-project/cmyt/compare/v1.0.1...v1.0.2

    Source code(tar.gz)
    Source code(zip)
  • v1.0.1(Nov 2, 2021)

    What's Changed

    • ENH: add support for Python 3.10 by @neutrinoceros in https://github.com/yt-project/cmyt/pull/47
    • MNT: drop unneeded dependency on typing_extensions for Python >= 3.8 by @neutrinoceros in https://github.com/yt-project/cmyt/pull/54

    Full Changelog: https://github.com/yt-project/cmyt/compare/v1.0.0...v1.0.1

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Nov 1, 2021)

    This is a symbolic release. It is almost identical to 0.2.2, but the version number is bumped to 1.0.0 to signal that cmyt is now considered stable and production-ready

    What's Changed

    • ENH: simplify a condition by @neutrinoceros in https://github.com/yt-project/cmyt/pull/51
    • REL: cmyt 1.0 by @neutrinoceros in https://github.com/yt-project/cmyt/pull/52

    Full Changelog: https://github.com/yt-project/cmyt/compare/v0.2.2...v1.0.0

    Source code(tar.gz)
    Source code(zip)
  • v0.2.1(Oct 6, 2021)

    This release improves existing code with some future proofing for Python 3.12 and improve type hints consistency for Python < 3.8 It is identical to v0.2.0 as far as usage is concerned.

    What's Changed

    • ENH: migrate from isort to reorder-python-imports for import sorting by @neutrinoceros in https://github.com/yt-project/cmyt/pull/44
    • ENH: future proofing by @neutrinoceros in https://github.com/yt-project/cmyt/pull/49

    Full Changelog: https://github.com/yt-project/cmyt/compare/v0.2.0...v0.2.1

    Source code(tar.gz)
    Source code(zip)
  • v0.2.0(Aug 26, 2021)

    cmyt.utils.create_cmap_overview gains a with_grayscale argument. This version is identical to v0.1.1 as far as the public api is concerned.

    Source code(tar.gz)
    Source code(zip)
  • v0.1.1(Jul 16, 2021)

    This is the first publicly available release of cmyt. It is considered in beta while its integration with the main yt code base is being checked.

    Source code(tar.gz)
    Source code(zip)
Owner
The yt project
A toolkit for analysis and visualization of volumetric data
The yt project
This component provides a wrapper to display SHAP plots in Streamlit.

streamlit-shap This component provides a wrapper to display SHAP plots in Streamlit.

Snehan Kekre 30 Dec 10, 2022
Application for viewing pokemon regional variants.

Pokemon Regional Variants Application Application for viewing pokemon regional variants. Run The Source Code Download Python https://www.python.org/do

Michael J Bailey 4 Oct 08, 2021
649 Pokémon palettes as CSVs, with a Python lib to turn names/IDs into palettes, or MatPlotLib compatible ListedColormaps.

PokePalette 649 Pokémon, broken down into CSVs of their RGB colour palettes. Complete with a Python library to convert names or Pokédex IDs into eithe

11 Dec 05, 2022
Simple function to plot multiple barplots in the same figure.

Simple function to plot multiple barplots in the same figure. Supports padding and custom color.

Matthias Jakobs 2 Feb 21, 2022
An animation engine for explanatory math videos

Powered By: An animation engine for explanatory math videos Hi there, I'm Zheer 👋 I'm a Software Engineer and student!! 🌱 I’m currently learning eve

Zaheer ud Din Faiz 2 Nov 04, 2021
Movies-chart - A CLI app gets the top 250 movies of all time from imdb.com and the top 100 movies from rottentomatoes.com

movies-chart This CLI app gets the top 250 movies of all time from imdb.com and

3 Feb 17, 2022
Scientific measurement library for instruments, experiments, and live-plotting

PyMeasure scientific package PyMeasure makes scientific measurements easy to set up and run. The package contains a repository of instrument classes a

PyMeasure 445 Jan 04, 2023
Visualize the bitcoin blockchain from your local node

Project Overview A new feature in Bitcoin Core 0.20 allows users to dump the state of the blockchain (the UTXO set) using the command dumptxoutset. I'

18 Sep 11, 2022
Schema validation just got Pythonic

Schema validation just got Pythonic schema is a library for validating Python data structures, such as those obtained from config-files, forms, extern

Vladimir Keleshev 2.7k Jan 06, 2023
Python+Numpy+OpenGL: fast, scalable and beautiful scientific visualization

Python+Numpy+OpenGL: fast, scalable and beautiful scientific visualization

Glumpy 1.1k Jan 05, 2023
Learn Basic to advanced level Data visualisation techniques from this Repository

Data visualisation Hey, You can learn Basic to advanced level Data visualisation techniques from this Repository. Data visualization is the graphic re

Shashank dwivedi 16 Jan 03, 2023
Mathematical learnings with Lean, for those of us who wish we knew more of both!

Lean for the Inept Mathematician This repository contains source files for a number of articles or posts aimed at explaining bite-sized mathematical c

Julian Berman 8 Feb 14, 2022
Extract and visualize information from Gurobi log files

GRBlogtools Extract information from Gurobi log files and generate pandas DataFrames or Excel worksheets for further processing. Also includes a wrapp

Gurobi Optimization 56 Nov 17, 2022
HiPlot makes understanding high dimensional data easy

HiPlot - High dimensional Interactive Plotting HiPlot is a lightweight interactive visualization tool to help AI researchers discover correlations and

Facebook Research 2.4k Jan 04, 2023
Histogramming for analysis powered by boost-histogram

Hist Hist is an analyst-friendly front-end for boost-histogram, designed for Python 3.7+ (3.6 users get version 2.4). See what's new. Installation You

Scikit-HEP Project 97 Dec 25, 2022
A simple python tool for explore your object detection dataset

A simple tool for explore your object detection dataset. The goal of this library is to provide simple and intuitive visualizations from your dataset and automatically find the best parameters for ge

GRADIANT - Centro Tecnolóxico de Telecomunicacións de Galicia 142 Dec 25, 2022
Data Visualizations for the #30DayChartChallenge

The #30DayChartChallenge This repository contains all the charts made for the #30DayChartChallenge during the month of April. This project aims to exp

Isaac Arroyo 7 Sep 20, 2022
WebApp served by OAK PoE device to visualize various streams, metadata and AI results

DepthAI PoE WebApp | Bootstrap 4 & Vue.js SPA Dashboard Based on dashmin (https:

Luxonis 6 Apr 09, 2022
BrowZen correlates your emotional states with the web sites you visit to give you actionable insights about how you spend your time browsing the web.

BrowZen BrowZen correlates your emotional states with the web sites you visit to give you actionable insights about how you spend your time browsing t

Nick Bild 36 Sep 28, 2022
A little word cloud generator in Python

Linux macOS Windows PyPI word_cloud A little word cloud generator in Python. Read more about it on the blog post or the website. The code is tested ag

Andreas Mueller 9.2k Dec 30, 2022