Fixed Sphinx error while plotting on MacOS.