first version
add drawHist
save hist
first
use detach
add legend
add hsup