Checks if the library matplotlib is installed