move plot function from fraunhofer into base module