small improvements on mhplot.r