minor adjustments to replotting routines.
added DIR keyword to redo_analysis.pro