Fixed matplotlib memory leak in rat_preproc.py.