plot max and sum

plot max and sum