added commented out code for wrong versions of matplotlib