matplotlib becomes optional