+ KPlotObject* p=plotObjects()[activeIndexPlot];
+ QList<KPlotPoint*> points=p->points();
+ QList<QPointF> newpoints;
+
+ double newx=inPlot.x()*dataRect().width()/pixRect().width();
+ double newy=(height()-inPlot.y()-bottomPadding()-topPadding() )*dataRect().height()/pixRect().height();
+ bool inserted=false;
+ foreach (KPlotPoint* pt,points){
+ if (pt->x() >newx && !inserted){
+ newpoints.append(QPointF(newx,newy));
+ inserted=true;
+ }
+ newpoints.append(QPointF(pt->x(),pt->y()));
+ }
+ p->clearPoints();
+ foreach (QPointF qf, newpoints ){
+ p->addPoint(qf);
+ }
+ replacePlotObject(activeIndexPlot,p);