only show mpl plot if ROOT is not in batch mode