check whether matplotlib is installed