Über Open CoDE Software Wiki Diskussionen GitLab

Skip to content

Common style for plotting with matplotlib in python

Jakob Deller requested to merge cd-colors-python into main

Tools to automatically set a common style for plotting with matplotlib in python.

provides

  • a central place to store the CD color definitions
  • style files that can be used in matplotlib by
import matplotlib.pyplot as plt
plt.style.use("~/data-stories/lib/umwelt.info.mplstyle")

or if you just want the colors:

import matplotlib.pyplot as plt
plt.style.use("~/data-stories/lib/ui.colors.mplstyle")
  • a script as a central place to create these stylefiles.
Edited by Jakob Deller

Merge request reports

Loading