Make matplotlib a soft dependency.