readded matplotlib as a dependency