Refactor show_marker matrix initialization to helper function.