tests/function/distance-to-marker.cc: display plot