remove matplotlib as a hard dependency

still required for some convenience functions and for importing `irlib.app`, but
this commit intends to make `import irlib` work without matplotlib. This means
that the utility scripts can be used from machines without matplotlib.
inspect runtime environment