added option to remove legend and fixed y label on top profile