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
Cartopy - a cartographic python library with matplotlib support

Cartopy is a Python package designed to make drawing maps for data analysis and visualisation easy. Table of contents Overview Get in touch License an

null 1.2k Jan 1, 2023
Statistical data visualization using matplotlib

seaborn: statistical data visualization Seaborn is a Python visualization library based on matplotlib. It provides a high-level interface for drawing

Michael Waskom 10.2k Dec 30, 2022
The windML framework provides an easy-to-use access to wind data sources within the Python world, building upon numpy, scipy, sklearn, and matplotlib. Renewable Wind Energy, Forecasting, Prediction

windml Build status : The importance of wind in smart grids with a large number of renewable energy resources is increasing. With the growing infrastr

Computational Intelligence Group 125 Dec 24, 2022
NorthPitch is a python soccer plotting library that sits on top of Matplotlib

NorthPitch is a python soccer plotting library that sits on top of Matplotlib.

Devin Pleuler 30 Feb 22, 2022
matplotlib: plotting with Python

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. Check out our home page for more inform

Matplotlib Developers 16.7k Jan 8, 2023
Statistical data visualization using matplotlib

seaborn: statistical data visualization Seaborn is a Python visualization library based on matplotlib. It provides a high-level interface for drawing

Michael Waskom 8.1k Feb 13, 2021
:small_red_triangle: Ternary plotting library for python with matplotlib

python-ternary This is a plotting library for use with matplotlib to make ternary plots plots in the two dimensional simplex projected onto a two dime

Marc 611 Dec 29, 2022
Joyplots in Python with matplotlib & pandas :chart_with_upwards_trend:

JoyPy JoyPy is a one-function Python package based on matplotlib + pandas with a single purpose: drawing joyplots (a.k.a. ridgeline plots). The code f

Leonardo Taccari 462 Jan 2, 2023
A python package for animating plots build on matplotlib.

animatplot A python package for making interactive as well as animated plots with matplotlib. Requires Python >= 3.5 Matplotlib >= 2.2 (because slider

Tyler Makaro 394 Dec 18, 2022
matplotlib: plotting with Python

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. Check out our home page for more inform

Matplotlib Developers 13.1k Feb 18, 2021
Statistical data visualization using matplotlib

seaborn: statistical data visualization Seaborn is a Python visualization library based on matplotlib. It provides a high-level interface for drawing

Michael Waskom 8.1k Feb 18, 2021
:small_red_triangle: Ternary plotting library for python with matplotlib

python-ternary This is a plotting library for use with matplotlib to make ternary plots plots in the two dimensional simplex projected onto a two dime

Marc 391 Feb 17, 2021
Joyplots in Python with matplotlib & pandas :chart_with_upwards_trend:

JoyPy JoyPy is a one-function Python package based on matplotlib + pandas with a single purpose: drawing joyplots (a.k.a. ridgeline plots). The code f

Leonardo Taccari 317 Feb 17, 2021
A python package for animating plots build on matplotlib.

animatplot A python package for making interactive as well as animated plots with matplotlib. Requires Python >= 3.5 Matplotlib >= 2.2 (because slider

Tyler Makaro 356 Feb 16, 2021
Painlessly create beautiful matplotlib plots.

Announcement Thank you to everyone who has used prettyplotlib and made it what it is today! Unfortunately, I no longer have the bandwidth to maintain

Olga Botvinnik 1.6k Jan 6, 2023
basemap - Plot on map projections (with coastlines and political boundaries) using matplotlib.

Basemap Plot on map projections (with coastlines and political boundaries) using matplotlib. ⚠️ Warning: this package is being deprecated in favour of

Matplotlib Developers 706 Dec 28, 2022
Easily convert matplotlib plots from Python into interactive Leaflet web maps.

mplleaflet mplleaflet is a Python library that converts a matplotlib plot into a webpage containing a pannable, zoomable Leaflet map. It can also embe

Jacob Wasserman 502 Dec 28, 2022
Design your own matplotlib stylefile interactively

Tired of playing with font sizes and other matplotlib parameters every time you start a new project or write a new plotting function? Want all you plots have the same style? Use matplotlib configuration files!

yobi byte 207 Dec 8, 2022
A Python library for plotting hockey rinks with Matplotlib.

Hockey Rink A Python library for plotting hockey rinks with Matplotlib. Installation pip install hockey_rink Current Rinks The following shows the cus

null 24 Jan 2, 2023