better-coded plotdata_status(), brought over from devel branch