Move the matplotlib dependency to be in the residualFlow function only (since that is the only place in which it is used).
Remove the matplotlib dependency as it wasn't used at all.
Fix the setup.py script following the project rename.