Modified plotdata for proper inputs