Manage and reorder segments in plot