plot: stricter arg type-checking