Has this function been copied from 04_make_plots_matplotlib.py? Then we should remove it from that script. Also, wouldn't it be better to move src/cross_section_measurement/lib.py to tools/cross_section_measurement.py?