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
Log visualizer for whirl-framework

Lumberjack Log visualizer for whirl-framework Установка pip install -r requirements.txt Как пользоваться python3 lumberjack.py -l путь до лога -o

Vladimir Malinovskii 2 Dec 19, 2022
Analytical Web Apps for Python, R, Julia, and Jupyter. No JavaScript Required.

Dash Dash is the most downloaded, trusted Python framework for building ML & data science web apps. Built on top of Plotly.js, React and Flask, Dash t

Plotly 17.9k Dec 31, 2022
A simple script that displays pixel-based animation on GitHub Activity

GitHub Activity Animator This project contains a simple Javascript snippet that produces an animation on your GitHub activity tracker. The project als

16 Nov 15, 2021
3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK)

PyVista Deployment Build Status Metrics Citation License Community 3D plotting and mesh analysis through a streamlined interface for the Visualization

PyVista 1.6k Jan 08, 2023
By default, networkx has problems with drawing self-loops in graphs.

By default, networkx has problems with drawing self-loops in graphs. It makes it hard to draw a graph with self-loops or to make a nicely looking chord diagram. This repository provides some code to

Vladimir Shitov 5 Jan 06, 2022
Analysis and plotting for motor/prop/ESC characterization, thrust vs RPM and torque vs thrust

esc_test This is a Python package used to plot and analyze data collected for the purpose of characterizing a particular propeller, motor, and ESC con

Alex Spitzer 1 Dec 28, 2021
Info for The Great DataTas plot-a-thon

The Great DataTas plot-a-thon Datatas is organising a Data Visualisation competition: The Great DataTas plot-a-thon We will be using Tidy Tuesday data

2 Nov 21, 2021
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
Automatically Visualize any dataset, any size with a single line of code. Created by Ram Seshadri. Collaborators Welcome. Permission Granted upon Request.

AutoViz Automatically Visualize any dataset, any size with a single line of code. AutoViz performs automatic visualization of any dataset with one lin

AutoViz and Auto_ViML 1k Jan 02, 2023
Automatically generate GitHub activity!

Commit Bot Automatically generate GitHub activity! We've all wanted to be the developer that commits every day, but that requires a lot of work. Let's

Ricky 4 Jun 07, 2022
An adaptable Snakemake workflow which uses GATKs best practice recommendations to perform germline mutation calling starting with BAM files

Germline Mutation Calling This Snakemake workflow follows the GATK best-practice recommandations to call small germline variants. The pipeline require

12 Dec 24, 2022
Machine learning beginner to Kaggle competitor in 30 days. Non-coders welcome. The program starts Monday, August 2, and lasts four weeks. It's designed for people who want to learn machine learning.

30-Days-of-ML-Kaggle 🔥 About the Hands On Program 💻 Machine learning beginner → Kaggle competitor in 30 days. Non-coders welcome The program starts

Roja Achary 145 Jan 01, 2023
PyFlow is a general purpose visual scripting framework for python

PyFlow is a general purpose visual scripting framework for python. State Base structure of program implemented, such things as packages disco

1.8k Jan 07, 2023
Quickly and accurately render even the largest data.

Turn even the largest data into images, accurately Build Status Coverage Latest dev release Latest release Docs Support What is it? Datashader is a da

HoloViz 2.9k Dec 28, 2022
Domain Connectivity Analysis Tools to analyze aggregate connectivity patterns across a set of domains during security investigations

DomainCAT (Domain Connectivity Analysis Tool) Domain Connectivity Analysis Tool is used to analyze aggregate connectivity patterns across a set of dom

DomainTools 34 Dec 09, 2022
A Python package for caclulations and visualizations in geological sciences.

geo_calcs A Python package for caclulations and visualizations in geological sciences. Free software: MIT license Documentation: https://geo-calcs.rea

Drew Heasman 1 Jul 12, 2022
A simple agent-based model used to teach the basics of OOP in my lectures

Pydemic A simple agent-based model of a pandemic. This is used to teach basic principles of object-oriented programming to master students. It is not

Fabien Maussion 2 Jun 08, 2022
Sentiment Analysis application created with Python and Dash, hosted at socialsentiment.net

Social Sentiment Dash Application Live-streaming sentiment analysis application created with Python and Dash, hosted at SocialSentiment.net. Dash Tuto

Harrison 456 Dec 25, 2022
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
Manim is an animation engine for explanatory math videos.

A community-maintained Python framework for creating mathematical animations.

12.4k Dec 30, 2022