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
eoplatform is a Python package that aims to simplify Remote Sensing Earth Observation by providing actionable information on a wide swath of RS platforms and provide a simple API for downloading and visualizing RS imagery

An Earth Observation Platform Earth Observation made easy. Report Bug | Request Feature About eoplatform is a Python package that aims to simplify Rem

Matthew Tralka 4 Aug 11, 2022
Python Data Validation for Humans™.

validators Python data validation for Humans. Python has all kinds of data validation tools, but every one of them seems to require defining a schema

Konsta Vesterinen 670 Jan 09, 2023
A script written in Python that generate output custom color (HEX or RGB input to x1b hexadecimal)

ColorShell ─ 1.5 Planned for v2: setup.sh for setup alias This script converts HEX and RGB code to x1b x1b is code for colorize outputs, works on ou

Riley 4 Oct 31, 2021
OpenStats is a library built on top of streamlit that extracts data from the Github API and shows the main KPIs

Open Stats Discover and share the KPIs of your OpenSource project. OpenStats is a library built on top of streamlit that extracts data from the Github

Pere Miquel Brull 4 Apr 03, 2022
A simple, fast, extensible python library for data validation.

Validr A simple, fast, extensible python library for data validation. Simple and readable schema 10X faster than jsonschema, 40X faster than schematic

kk 209 Sep 19, 2022
Flow-based visual scripting for Python

A simple visual node editor for Python Ryven combines flow-based visual scripting with Python. It gives you absolute freedom for your nodes and a simp

Leon Thomm 3.1k Jan 06, 2023
Simple spectra visualization tool for astronomers

SpecViewer A simple visualization tool for astronomers. Dependencies Python = 3.7.4 PyQt5 = 5.15.4 pyqtgraph == 0.10.0 numpy = 1.19.4 How to use py

5 Oct 07, 2021
LabGraph is a a Python-first framework used to build sophisticated research systems with real-time streaming, graph API, and parallelism.

LabGraph is a a Python-first framework used to build sophisticated research systems with real-time streaming, graph API, and parallelism.

MLH Fellowship 7 Oct 05, 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
Visualization ideas for data science

Nuance I use Nuance to curate varied visualization thoughts during my data scientist career. It is not yet a package but a list of small ideas. Welcom

Li Jiangchun 16 Nov 03, 2022
Gallery of applications built using bqplot and widget libraries like ipywidgets, ipydatagrid etc.

bqplot Gallery This is a gallery of bqplot examples. View the gallery at https://bqplot.github.io/bqplot-gallery. Contributing new examples Clone this

8 Aug 23, 2022
An interactive dashboard built with python that enables you to visualise how rent prices differ across Sweden.

sweden-rent-dashboard An interactive dashboard built with python that enables you to visualise how rent prices differ across Sweden. The dashboard/web

Rory Crean 5 Dec 19, 2021
Declarative statistical visualization library for Python

Altair http://altair-viz.github.io Altair is a declarative statistical visualization library for Python. With Altair, you can spend more time understa

Altair 8k Jan 05, 2023
Python script for writing text on github contribution chart.

Github Contribution Drawer Python script for writing text on github contribution chart. Requirements Python 3.X Getting Started Create repository Put

Steven 0 May 27, 2022
Turn a STAC catalog into a dask-based xarray

StackSTAC Turn a list of STAC items into a 4D xarray DataArray (dims: time, band, y, x), including reprojection to a common grid. The array is a lazy

Gabe Joseph 148 Dec 19, 2022
The interactive graphing library for Python (includes Plotly Express) :sparkles:

plotly.py Latest Release User forum PyPI Downloads License Data Science Workspaces Our recommended IDE for Plotly’s Python graphing library is Dash En

Plotly 12.7k Jan 05, 2023
A filler visualizer built using python

filler-visualizer 42 filler のログをビジュアライズしてスポーツさながら楽しむことができます! Usage (標準入力でvisualizer.pyに渡せばALL OK) 1. 既にあるログをビジュアライズする $ ./filler_vm -t 3 -p1 john_fill

Takumi Hara 1 Nov 04, 2021
FURY - A software library for scientific visualization in Python

Free Unified Rendering in Python A software library for scientific visualization in Python. General Information • Key Features • Installation • How to

169 Dec 21, 2022
A Scheil-Gulliver simulation tool using pycalphad.

scheil A Scheil-Gulliver simulation tool using pycalphad. import matplotlib.pyplot as plt from pycalphad import Database, variables as v from scheil i

pycalphad 6 Dec 10, 2021
A workshop on data visualization in Python with notebooks and exercises for following along.

Beyond the Basics: Data Visualization in Python The human brain excels at finding patterns in visual representations, which is why data visualizations

Stefanie Molin 162 Dec 05, 2022