fixed condition file close -> open in GracePlotTools.cpp