Fix function plotter in embed example