Color schemes of JMU Würzburg for matplotlib, seaborn, and plotly.
Project description
JMU Colors
A lightweight Python package providing the color scheme of the Julius-Maximilians-Universität Würzburg for Matplotlib, Seaborn, Plotly, and Latex, according to the 03 / 2024 Corporate Design Manual. Inspired by fau-colors.
Maintained independently; not an official repository of JMU
Color Overview
Primary Colors:
- $\color{#063D79}{\text{■ dunkelblau (063D79)}}$
- $\color{#D8DADC}{\text{■ grau (D8DADC)}}$
Secondary Colors:
- $\color{#50BBB0}{\text{■ mint (50BBB0)}}$
- $\color{#8573B3}{\text{■ violett (8573B3)}}$
- $\color{#447DC0}{\text{■ blau (447DC0)}}$
- $\color{#86BE84}{\text{■ gruen (86BE84)}}$
- $\color{#660954}{\text{■ berry (660954)}}$
- $\color{#009FE3}{\text{■ cyan (009FE3)}}$
Installation
pip install jmu-colors
Python Usage
The package automatically registers jmu_primary, jmu_secondary, and jmu_all as colormaps in matplotlib when imported.
Define Sample Data
import pandas as pd
df = pd.DataFrame({
'Department': ['A', 'B', 'C', 'D', 'E'],
'Students': [150, 240, 110, 180, 200],
})
Matplotlib
import matplotlib.pyplot as plt
import jmu_colors
# Matplotlib using a registered colormap
plt.scatter(df['Department'], df['Students'], c=df.index, cmap='jmu_all', s=300)
plt.show()
Seaborn
import seaborn as sns
import jmu_colors
# Seaborn using global color palette
sns.set_palette('jmu_secondary')
sns.barplot(data=df, x='Department', y='Students', hue='Department', legend=False)
plt.show()
Plotly
import plotly.express as px
from jmu_colors import ALL_COLORS
# Plotly accepts hex lists natively. Just pass the raw colors.
fig = px.bar(
df,
x="Department",
y="Students",
color="Department",
color_discrete_sequence=list(ALL_COLORS.values()),
)
fig.show()
LaTeX Usage
Copy the latex/jmu-colors.sty file into your LaTeX project folder.
\documentclass{article}
\usepackage{jmu-colors}
\begin{document}
\textcolor{jmu-dunkelblau}{This text is JMU dark blue!}
\end{document}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jmu_colors-0.1.2.tar.gz.
File metadata
- Download URL: jmu_colors-0.1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5d80484c2df09541d7145110dd4ea789bcac7d9c4e7a034e3a6118948522294
|
|
| MD5 |
f12728665988f4711d0371ba87e396c6
|
|
| BLAKE2b-256 |
d6f75b4a86efd6b71a496b7b3f1acfedc4c785a4db00ec6b7f958fa54cbce176
|
Provenance
The following attestation bundles were made for jmu_colors-0.1.2.tar.gz:
Publisher:
publish.yml on Mo-Sc/jmu-colors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jmu_colors-0.1.2.tar.gz -
Subject digest:
b5d80484c2df09541d7145110dd4ea789bcac7d9c4e7a034e3a6118948522294 - Sigstore transparency entry: 2181902243
- Sigstore integration time:
-
Permalink:
Mo-Sc/jmu-colors@d5fc225f40bba720acf868c514311f816a0c781a -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Mo-Sc
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d5fc225f40bba720acf868c514311f816a0c781a -
Trigger Event:
push
-
Statement type:
File details
Details for the file jmu_colors-0.1.2-py3-none-any.whl.
File metadata
- Download URL: jmu_colors-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efd0549166f3dba87feaff10f33c4c4964b492e1f25a6375127bd37ab4b71298
|
|
| MD5 |
2d34c871e53d5c4a401be07c3d187b0d
|
|
| BLAKE2b-256 |
ee64a7ded8c7d65922c292bde2b54a4ba301545a11d22c8fdf0b3a1d7ceb6e06
|
Provenance
The following attestation bundles were made for jmu_colors-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on Mo-Sc/jmu-colors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jmu_colors-0.1.2-py3-none-any.whl -
Subject digest:
efd0549166f3dba87feaff10f33c4c4964b492e1f25a6375127bd37ab4b71298 - Sigstore transparency entry: 2181902310
- Sigstore integration time:
-
Permalink:
Mo-Sc/jmu-colors@d5fc225f40bba720acf868c514311f816a0c781a -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Mo-Sc
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d5fc225f40bba720acf868c514311f816a0c781a -
Trigger Event:
push
-
Statement type: