Use a plot directive rather than a link to a file in the _image directory, since the latter doesn't work with the latex build
Merge pull request #1953 from mdboom/fix-doc-build

Fixed use of generated image in documentation build.