move plotting utility functions to dedicated module

As noted in the comments on #55, this moves plotting functions to their own
module and adds a usage example to the documentation.