changed the way the legend is printed on error-hist