fix energy cuts
add matplotlib extrcat for ipy notebooks