data generated, plotFnc added