The docs also show up in IPython, so maybe there is some issue on the website.
If you don’t want to use matplotlib, you could use e.g. PIL instead.
However, in your code you are free to use whatever works for you.