Include UBA default colors?
Context
Hello, I am creating a plot tool at Fraunhofer ISI and already wrote some code to create plots following several templates, also including the UBA examples. Now I found this repository and find it very interesting. I still try to find out what parts I can adopt to our existing workflows.
Suggestion
Please include the UBA default colors in your code base, so that they do not need to be hard coded by the users of the library.
Example code that I currently use to represent UBA colors:
from fhg_isi.color.color import Color
from fhg_isi.color.color_map import ColorMap
uba = ColorMap({
# source:
# https://www.umweltbundesamt.de/sites/default/files/medien/1410/dokumente/2019_uba_manual_screen.pdf
# https://www.umweltbundesamt.de/sites/default/files/medien/378/dokumente/uba_diagramm_calibri.xlsx
# names were matched with https://colors.artyclick.com/color-name-finder/
'1': Color('1', 'leaf', 94, 173, 53), # UBA Grün
'2': Color('2', 'venice blue', 0, 95, 133), # UBA Dunkelblau
'3': Color('3', 'pacific blue', 0, 155, 213), # UBA Blau
'4': Color('4', 'la salle green', 0, 118, 38), # UBA Dunkelgrün
'5': Color('5', 'selective yellow', 250, 187, 0), # UBA Ocker
'6': Color('6', 'red purple', 131, 5, 60), # UBA Dunkelflieder
'7': Color('7', 'medium violet red', 206, 31, 94), # UBA Fuchsia
'8': Color('8', 'tahiti gold', 215, 132, 0), # UBA Dunkelocker
'9': Color('9', 'trendy pink', 157, 87, 154), # UBA Flieder
'10': Color('10', 'red purple', 131, 5, 60), # UBA Dunkelfuchsia
'11': Color('11', 'seashell', 240, 241, 241), # UBA Hellgrau
'12': Color('12', 'liver', 75, 75, 77), # UBA Dunkelgrau
})
I would prefer to import your official UBA libary and reference the colors from there. If the colors should change in future, I would expect that I can import a new version of this library, providing the new colors... instead of manually copying them from the pdf document.