https://github.com/avapolzin/rahrah
University-inspired matplotlib color palettes and colormaps.
Science Score: 49.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.4%) to scientific vocabulary
Keywords
Repository
University-inspired matplotlib color palettes and colormaps.
Basic Info
Statistics
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 3
Topics
Metadata Files
README.md
University-inspired matplotlib color palettes and colormaps. Colors are taken directly from University branding guidelines, so there is no specific effort toward perceptual uniformity or accessibility for color blindness beyond the aesthetic choices I made in putting the palettes/colormaps together. Please check your plots/figures with COBLIS or similar.
Installation
To install: ```bash cd ~
git clone git@github.com:avapolzin/rahrah.git
cd rahrah
sudo python3 setupy.py install
`
or
bash
pip install rahrah
```
If you use this package or the scripts in this repository in a publication, please add a footnote linking to https://github.com/avapolzin/rahrah and/or consider adding this software to your acknowledgments. If you would like to cite rahrah, please use the Zenodo DOI linked here.
I'd love to feature plots/figures that make use of these palettes in the wild, so should these palettes be of use, please send me a copy of that figure and/or a link to your paper or presentation and I will share it here.
(Interested in palettes and colormaps based on album covers? Check out albumpl.)
Palettes/Colormaps
To request the addition of a new school's palette/colormap, please open an issue, linking to the university's branding guidelines.
Included palettes (to now):
Albion (Albion College)
Amherst (Amherst College)
ASU (Arizona State University)
Bowdoin (Bowdoin College)
Brown (Brown University)
BrownBright (Brown University)
Caltech (California Institute of Technology)
CaltechBright (California Institute of Technology)
CarnegieMellon (Carnegie Mellon University)
CarnegieMellonBright (Carnegie Mellon University)
CUNY (City University of New York)
Colgate (Colgate University)
Columbia (Columbia University)
ColumbiaBright (Columbia University)
Cornell (Cornell University)
Dartmouth (Dartmouth College)
DartmouthMono (Dartmouth College)
Duke (Duke University)
GeorgiaTech (Georgia Institute of Technology)
GSU (Georgia State University)
Harvard (Harvard University)
HarveyMudd (Harvey Mudd College)
Haverford (Haverford College)
Indiana (Indiana University)
JohnsHopkins (Johns Hopkins University)
JohnsHopkinsMono (Johns Hopkins University)
MIT (Massachusetts Institute of Technology)
MITBright (Massachusetts Institute of Technology)
McGill (McGill University)
MichiganState (Michigan State University)
Middlebury (Middlebury College)
NMSU (New Mexico State University)
NYU (New York University)
NCState (North Carolina State University)
NIU (Northern Illinois University)
Northwestern (Northwestern University)
NotreDame (Notre Dame University)
Oberlin (Oberlin College and Conservatory)
OhioState (The Ohio State University)
OregonState (Oregon State University)
PennState (The Pennsylvania State University)
Princeton (Princeton University)
Purdue (Purdue University)
QUB (Queen's University Belfast)
QUBBright (Queen's University Belfast)
Reed (Reed College)
Rutgers (Rutgers, The State University of New Jersey)
Stanford (Stanford University)
StonyBrook (The State University of New York at Stony Brook)
Syracuse (Syracuse University)
Arizona (University of Arizona)
UBC (University of British Columbia)
Berkeley (University of California, Berkeley)
UCLA (University of California, Los Angeles)
Cambridge (University of Cambridge)
Chicago (The University of Chicago)
ChicagoBright (The University of Chicago)
Colorado (University of Colorado Boulder)
UConn (University of Connecticut)
Idaho (University of Idaho)
Illinois (University of Illinois)
Iowa (University of Iowa)
Kansas (University of Kansas)
Kentucky (University of Kentucky)
Oxford (University of Oxford)
Maryland (University of Maryland)
UMass (University of Massachusetts Amherst)
UMassBright (University of Massachusetts Amherst)
Michigan (University of Michigan)
Minnesota (University of Minnesota)
Nebraska (University of Nebraska)
UNC (University of North Carolina Chapel Hill)
UNCBright (University of North Carolina Chapel Hill)
Oregon (University of Oregon)
Penn (University of Pennsylvania)
Pitt (University of Pittsburgh)
USC (University of Southern California)
Texas (University of Texas)
Toronto (University of Toronto)
Utah (University of Utah)
UVA (University of Virginia)
Washington (University of Washington)
Wisconsin (University of Wisconsin)
Vanderbilt (Vanderbilt University)
Wellesley (Wellesley College)
WVU (West Virginia University)
Yale (Yale University)
There are also some alternative colormaps that are not the default associated with a specific palette, but are still callable.
How to use rahrah:
- To list all palettes and their properties: ```python from rahrah.palette import list_palettes
list_palettes()
``
*You can also filter for number of colors in the color cycle or type of colormap (sequential/diverging) with the argumentsmincolorsandmaptype`.*
- To list all colormaps: ```python from rahrah.cmap import list_maps
list_maps() ```
- To set palette as default for both color cycle and colormap: ```python from rahrah.palette import set_default
set_default('Northwestern') ```
- To set a palette as default for color cycle or colormap: ```python from rahrah.palette import setdefaultccycle, setdefaultcmap
setdefaultccycle('ChicagoBright')
*or*
python
setdefaultcmap('Yale')
```
- To access colormaps without setting them as default:
```python import matplotlib.pyplot as plt import rahrah.cmap
plt.imshow(image, cmap = 'USC') ``` To reverse the colormap, simply append 'r' to the name (e.g., 'USC' becomes 'USCr').
- To access the colors in a color cycle/palette without setting a default: ```python from rahrah.palette import return_colors
return_colors('BrownBright') ```
The lightness of all colormaps is shown below (all sequential maps are shown dark-to-light for easier comparison):
Owner
- Login: avapolzin
- Kind: user
- Company: The University of Chicago
- Website: avapolzin.github.io
- Twitter: avapolzin
- Repositories: 20
- Profile: https://github.com/avapolzin
GitHub Events
Total
- Release event: 4
- Watch event: 4
- Push event: 25
- Public event: 1
- Create event: 3
Last Year
- Release event: 4
- Watch event: 4
- Push event: 25
- Public event: 1
- Create event: 3
Packages
- Total packages: 1
-
Total downloads:
- pypi 35 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 7
- Total maintainers: 1
pypi.org: rahrah
University-inspired Matplotlib palettes and colormaps.
- Homepage: https://github.com/avapolzin/rahrah
- Documentation: https://rahrah.readthedocs.io/
- License: MIT
-
Latest release: 0.6.1
published 11 months ago