add histogram figure