use python for plotting routines and fits