don't import matplotlib if not used