Do not fail when matplotlib or pygame are not available -- helps building the docs with fewer requirements.
Do not require matplotlib for readthedocs, the docs should build without it.