Skip to main content

Taylor Swift inspired Matplotlib colormaps.

Project description

Taylor Swift color map collection.

Quick start: pip install swiftascmaps

Includes color maps based on the following albums:

  • Red (red, red_r)
  • 1989 (nineteen_eighty_nine, nineteen_eighty_nine_r)
  • Reputation (reputation, reputation_r)
  • Lover (lover, lover_r)
  • Folklore (folklore, folklore_r)
  • Evermore (evermore, evermore_r, evermore_shifted, evermore_shifted_r)
  • Fearless: Taylor's Version (fearless_tv, fearless_tv_r)

License: LGPLv3 Author: Josh Borrow (josh@joshborrow.com)

Usage

To use these, you can import them and use them with matplotlib as you would with any other color map.

from swiftascmaps import red
from matplotlib.pyplot import imshow
from numpy import random

imshow(random.rand(128, 128), cmap=red)

Examples

Red

1989

Reputation

Lover

Folklore

Evermore

Evermore shifted

Fearless: Taylor's Version

Note

Of course, these aren't necessarily designed to be colorblind friendly, or perceptually uniform, so use them with caution. They are quite pretty though. To underline how much you should not use these in a real scientific publication (apart from perhaps qualitative imaging), the lightness values are shown below.

For quantitative comparisons, please ensure that you use a perceptually uniform colour map (see e.g. those available directly through matplotlib).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

swiftascmaps-1.2.1-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page