allow usage, with limitations, without installing matplotlib