handled matplotlib not present case