added text formatter to plot.py