Here we present a short example of how to use the 'wrapfig' package to automatically wrap text around a figure (including the figure caption).
The example shows left and right aligned figures with wrapped text, and is available to open as a template if you want to try it for yourself.