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
Automatic data visualization in atom with the nteract data-explorer

Data Explorer Interactively explore your data directly in atom with hydrogen! The nteract data-explorer provides automatic data visualization, so you

Ben Russert 65 Dec 01, 2022
Yata is a fast, simple and easy Data Visulaization tool, running on python dash

Yata is a fast, simple and easy Data Visulaization tool, running on python dash. The main goal of Yata is to provide a easy way for persons with little programming knowledge to visualize their data e

Cybercreek 3 Jun 28, 2021
metedraw is a project mainly for data visualization projects of Atmospheric Science, Marine Science, Environmental Science or other majors

It is mainly for data visualization projects of Atmospheric Science, Marine Science, Environmental Science or other majors.

Nephele 11 Jul 05, 2022
Active Transport Analytics Model (ATAM) is a new strategic transport modelling and data visualization framework for Active Transport as well as emerging micro-mobility modes

{ATAM} Active Transport Analytics Model Active Transport Analytics Model (“ATAM”) is a new strategic transport modelling and data visualization framew

Peter Stephan 0 Jan 12, 2022
daily report of @arkinvest ETF activity + data collection

ark_invest daily weekday report of @arkinvest ETF activity + data collection This script was created to: Extract and save daily csv's from ARKInvest's

T D 27 Jan 02, 2023
A Simple Flask-Plotly Example for NTU 110-1 DSSI Class

A Simple Flask-Plotly Example for NTU 110-1 DSSI Class Live Demo Prerequisites We will use Flask and Ploty to build a Flask application. If you haven'

Ting Ni Wu 1 Dec 11, 2021
Extract data from ThousandEyes REST API and visualize it on your customized Grafana Dashboard.

ThousandEyes Grafana Dashboard Extract data from the ThousandEyes REST API and visualize it on your customized Grafana Dashboard. Deploy Grafana, Infl

Flo Pachinger 16 Nov 26, 2022
Frbmclust - Clusterize FRB profiles using hierarchical clustering, plot corresponding parameters distributions

frbmclust Getting Started Clusterize FRB profiles using hierarchical clustering,

3 May 06, 2022
Splore - a simple graphical interface for scrolling through and exploring data sets of molecules

Scroll through and exPLORE molecule sets The splore framework aims to offer a si

3 Jun 18, 2022
Data visualization using matplotlib

Data visualization using matplotlib project instructions Top 5 Most Common Coffee Origins In this visualization I used data from Ankur Chavda on Kaggl

13 Oct 27, 2021
Personal IMDB Graphs with Bokeh

Personal IMDB Graphs with Bokeh Do you like watching movies and also rate all of them in IMDB? Would you like to look at your IMDB stats based on your

2 Dec 15, 2021
A minimal Python package that produces slice plots through h5m DAGMC geometry files

A minimal Python package that produces slice plots through h5m DAGMC geometry files Installation pip install dagmc_geometry_slice_plotter Python API U

Fusion Energy 4 Dec 02, 2022
WhatsApp Chat Analyzer is a WebApp and it can be used by anyone to analyze their chat. 😄

WhatsApp-Chat-Analyzer You can view the working project here. WhatsApp chat Analyzer is a WebApp where anyone either tech or non-tech person can analy

Prem Chandra Singh 26 Nov 02, 2022
nptsne is a numpy compatible python binary package that offers a number of APIs for fast tSNE calculation.

nptsne nptsne is a numpy compatible python binary package that offers a number of APIs for fast tSNE calculation and HSNE modelling. For more detail s

Biomedical Visual Analytics Unit LUMC - TU Delft 29 Jul 05, 2022
在原神中使用围栏绘图

yuanshen_draw 在原神中使用围栏绘图 文件说明 toLines.py 将一张图片转换为对应的线条集合,视频可以按帧转换。 draw.py 在原神家园里绘制一张线条图。 draw_video.py 在原神家园里绘制视频(自动按帧摆放,截图(win)并回收) cat_to_video.py

14 Oct 08, 2022
Visualizations of linear algebra algorithms for people who want a deep understanding

Visualising algorithms on symmetric matrices Examples QR algorithm and LR algorithm Here, we have a GIF animation of an interactive visualisation of t

ogogmad 3 May 05, 2022
Piglet-shaders - PoC of custom shaders for Piglet

Piglet custom shader PoC This is a PoC for compiling Piglet fragment shaders usi

6 Mar 10, 2022
A python script and steps to display locations of peers connected to qbittorrent

A python script (along with instructions) to display the locations of all the peers your qBittorrent client is connected to in a Grafana worldmap dash

62 Dec 07, 2022
Data visualization electromagnetic spectrum

Datenvisualisierung-Elektromagnetischen-Spektrum Anhand des Moduls matplotlib sollen die Daten des elektromagnetischen Spektrums dargestellt werden. D

Pulsar 1 Sep 01, 2022