Config File Reader

The config files are written in the TOML format.

Colormaps

I’m a big fan of matplotlib’s colourmaps, and I often use the ‘tab10’ qualitative colourmap when plotting multiple datasets on the same axes. Colours in the config files are specified using hex codes, so I’ve summarized tab10’s hex codes in the table below.

Colour

Hex Code

Blue

#1F77B4

Orange

#FF7F0E

Green

#2CA02C

Red

#D62728

Purple

#9467BD

Brown

#8C564B

Pink

#E377C2

Grey

#7F7F7F

Olive

#BCBD22

Cyan

#17BECF

You can also look up these hex codes and many others directly from matplotlib:

>>> import matplotlib
>>> cmap = matplotlib.colors.get_named_colors_mapping()
>>> cmap['tab:blue']
'#1f77b4'
>>> cmap['tab:orange']
'#ff7f0e'

and so on.

<matplotlib qualitative colormaps>
config_reader.read(config_file)[source]

Read the plotting configuration parameters into a dictionary.

Parameters

config_file (str) – Path to the config file

Returns

Dictionary of configuration parameters

Return type

dict