Added rounding to numeric axis

Use boost::format instead of boost::lexical_cast to avoid
precision errors and remove training zeros

Refs #9738
Merge remote-tracking branch 'origin/bugfix/9738_fix_plot_legend_sigfig_rounding'