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) - Red: Taylor's Version (
red_tv,red_tv_r) - Midnights (
midnights,midnights_r) - Speak Now: Taylor's Version (
speak_now_tv,speak_now_tv_r) - 1989: Taylor's Version (nineteen_eighty_nine_tv, nineteen_eighty_nine_tv_r)
License: LGPLv3 Author: Josh Borrow (josh@joshborrow.com)
If you prefer to use R, there is an alternative package
maintained as taloRswift.
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)
The color maps can also be accessed in matplotlib using strings
by prefixing swift, e.g.
import swiftascmaps
imshow(random.rand(128, 128), cmap="swift.red")
Examples
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).
Metadata
Release files for swiftascmaps 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swiftascmaps-1.6.0.tar.gz | 6.9 kB | Without provenance | Details for swiftascmaps-1.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swiftascmaps-1.6.0-py3-none-any.whl | Python 3 | none | any | Details for swiftascmaps-1.6.0-py3-none-any.whl |
Total release size: 14.8 kB
Release files / swiftascmaps-1.6.0.tar.gz
| Download URL | swiftascmaps-1.6.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87ea903c16ae9aea9249b755c2478961388ecbe2b40ab192f5a456d0275776d4
|
|
BLAKE2b-256 checksum How to use checksums |
731989be5407bc228e3a0003022068a1acfbd8808142d77c19afc03746fece18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / swiftascmaps-1.6.0-py3-none-any.whl
| Download URL | swiftascmaps-1.6.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b89117616a2acd77bc5c9b56356a035651a137f51dfe4674c5cac2462297382
|
|
BLAKE2b-256 checksum How to use checksums |
fda0e820e6a4da9beb98f0d6838d8d28a72024b244953a8edb3fa78ba3317395
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Security for swiftascmaps 1.6.0
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.