Move matplotlib dependencies into show* function