Added rounding to numeric axis

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

Refs #9738
Merge branch 'bugfix/9738_fix_plot_legend_sigfig_rounding' into develop