doc: Use mock not requirements for matplotlib etc.

This is to allow the "autodoc" documentation to be built without
having to install the optional requirements.  Astropy has been
left in the requirements file since it is needed for FITS file
handling.