rewrited plotdata class and icurve class