Skip to main content

Color schemes of JMU Würzburg for matplotlib, seaborn, and plotly.

Project description

JMU Colors

PyPI Code style: black License: MIT

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


Download files

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

Source Distribution

jmu_colors-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jmu_colors-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for jmu_colors-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b5d80484c2df09541d7145110dd4ea789bcac7d9c4e7a034e3a6118948522294
MD5 f12728665988f4711d0371ba87e396c6
BLAKE2b-256 d6f75b4a86efd6b71a496b7b3f1acfedc4c785a4db00ec6b7f958fa54cbce176

See more details on using hashes here.

Provenance

The following attestation bundles were made for jmu_colors-0.1.2.tar.gz:

Publisher: publish.yml on Mo-Sc/jmu-colors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for jmu_colors-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efd0549166f3dba87feaff10f33c4c4964b492e1f25a6375127bd37ab4b71298
MD5 2d34c871e53d5c4a401be07c3d187b0d
BLAKE2b-256 ee64a7ded8c7d65922c292bde2b54a4ba301545a11d22c8fdf0b3a1d7ceb6e06

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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