Skip to main content

pokemonPalette license version stars Twittwer

The pokePalette is a python library generate a color palette based on the colors of a chosen pokemon.


Requeriments:

numpy
opencv
pokebase
sklearn


Usage:

get_pokemon_palette("pokemon name", numcolors=x)

>>> from pokemonPalette import pokePalette
>>> palette = pokePalette.get_pokemon_palette("charizard")
>>> print(palette)
['#bd4831', '#0f4F64', '#ef8826', '#edD079']

Examples

import seaborn as sns
import matplotlib.pyplot as plt
from pokemonPalette import pokePalette

titanic = sns.load_dataset("titanic")
palette = pokePalette.get_pokemon_palette('gengar',numcolors=2)
g = sns.factorplot("class", "survived", "sex", data=titanic, kind="bar", palette=palette, legend=False)
plt.show()

import seaborn as sns
import matplotlib.pyplot as plt
from pokemonPalette import pokePalette

sns.set_style('white')
index = ['HP', 'Attack', 'Defense', 'Sp. Atk', 'Sp. Def', 'Speed']
bulbasaur = [45, 49, 49, 65, 65, 45]
charmander = [39, 52, 43, 60, 50, 65]
squirtle = [44, 48, 65, 50, 64, 43]

palette_b = pokePalette.get_pokemon_palette('bulbasaur')
palette_c = pokePalette.get_pokemon_palette('charmander')
palette_s = pokePalette.get_pokemon_palette('squirtle')

fig, axes = plt.subplots(1,3)
fig.suptitle('Initial Pokemons - 1st Generantion')
sns.barplot(ax=axes[0], x=index, y=bulbasaur, palette=palette_b)
axes[0].set_title("bulbasaur")
sns.barplot(ax=axes[1], x=index, y=charmander, palette=palette_c)
axes[0].set_title("charmander")
sns.barplot(ax=axes[2], x=index, y=squirtle, palette=palette_s)
axes[0].set_title("squirtle")


Plans for next updates

  • Add the option to get shiny Pokemon palette.
  • Remove repeated colors.

Metadata

Release files for pokemonPalette 0.0.2.3

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

Source distribution (sdist)

Source distribution for pokemonPalette 0.0.2.3
File Size Uploaded
pokemonPalette-0.0.2.3.tar.gz 3.8 kB Details

Built distribution (wheel)

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

Total release size: 8.2 kB

Release files / pokemonPalette-0.0.2.3.tar.gz

Download URL pokemonPalette-0.0.2.3.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7a8bd00a86590b845aa9ed5502a84dda7a4311d2f7eb01d3b0c2848ca0dbadb1
BLAKE2b-256 checksum
How to use checksums
2e7f94bb0cf3d84d0b4f404e48dede40250c300ad0b72892e2db6939c214552f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Release files / pokemonPalette-0.0.2.3-py3-none-any.whl

Download URL pokemonPalette-0.0.2.3-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d55a71b2cdbd6be38c5e3262003ccbc0948ee355a4956b5fed0b719c51942659
BLAKE2b-256 checksum
How to use checksums
e3f8bf434079d23a1b71e22161ff79b6db59beaef5e72d9b48d7c9473d113d2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.2.3 This release

2 release files

0.0.1

2 release files

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