added matplotlib snippets