Removed most references to pyplot

Pyplot is designed for interactive use and its state-based approach can
conflict with object-oriented usage.