The first solution (Chris) first defines a function that takes a pure function and makes it wiggle, then goes on to draw the graphic elements of the plot (axes, legend, the curve). This way everything is still a fully symbolic graphic object and can be exported as pdf.
The second solution (Simon wood) uses rasterzation and image processing to do the trick, thus losing vector data.
The second solution (Simon wood) uses rasterzation and image processing to do the trick, thus losing vector data.