Refactored Trace::get_label_rect to use get_y