Skip to main content

pokepalette

A simple pokemon color chooser

"CI PyPI

image.png This repo is based on CDWimmer/PokePalette

Install

pip install pokepalette

How to use

import numpy as np
import matplotlib.pyplot as plt

import pokepalette

There is a handy SimpleNamespace with all the pokemons and their colours available:

pokepalette.PokemonColours.pikachu
['#f5e551',
 '#f5bc1f',
 '#000000',
 '#9b5100',
 '#dd9300',
 '#613007',
 '#404049',
 '#282828',
 '#fef5a3',
 '#c41f17',
 '#e55940',
 '#fefefe',
 '#727282']
pikachu_cmap = pokepalette.get_colormap('pikachu')

You can plot passing the pikachu colors directly

# Pie chart, where the slices will be ordered and plotted counter-clockwise:
labels = 'Frogs', 'Hogs', 'Dogs', 'Logs'
sizes = [15, 30, 45, 10]
explode = (0, 0.1, 0, 0)  # only "explode" the 2nd slice (i.e. 'Hogs')

fig1, ax1 = plt.subplots()
ax1.pie(sizes, colors=pokepalette.PokemonColours.pikachu, explode=explode, labels=labels, autopct='%1.1f%%',
        shadow=True, startangle=90)
ax1.axis('equal')  # Equal aspect ratio ensures that pie is drawn as a circle.

plt.show()

png

or passing the corresponding matplotlib's colormap

plt.rcParams["figure.figsize"] = [7.50, 3.50]
plt.rcParams["figure.autolayout"] = True

N = 50
x = np.random.randn(N)
y = np.random.randn(N)

plt.scatter(x, y, c=x, cmap=pikachu_cmap)

plt.show()

png

Metadata

Release files for pokepalette 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pokepalette 0.0.6
File Size Uploaded Provenance Actions
pokepalette-0.0.6.tar.gz 39.9 kB Without provenance Details for pokepalette-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pokepalette 0.0.6
File Interpreter ABI Platform Actions
pokepalette-0.0.6-py3-none-any.whl Python 3 none any Details for pokepalette-0.0.6-py3-none-any.whl

Total release size: 106.3 kB

Release files / pokepalette-0.0.6.tar.gz

Download URL pokepalette-0.0.6.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
68eed84640a7fe2f9ab3f68ab4370c462ab04030661d74595b938c04e9633a6d
BLAKE2b-256 checksum
How to use checksums
b853142f55ee0a2a2143f006b0616d082c17252e102bca93a14febf4c5912a75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / pokepalette-0.0.6-py3-none-any.whl

Download URL pokepalette-0.0.6-py3-none-any.whl
Size 66.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03b7e6ed1179397e49a71e31e307a271da65f9ebcda2272078590c5ae89ae5c2
BLAKE2b-256 checksum
How to use checksums
f3347c1bcae762550dadbcc65b8259caba42890766d9e08448726f6defa001d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Security for pokepalette 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page