lib/poset: split `show_dot` in two methods