corrected two matplotlib snippets.