RE: removal of points from TGraph

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Fri, 2 Feb 2007 17:28:35 +0100

Hi,

The RemovePoint function you access from the pull down menu first find the closest graph's point to the mouse position and then call RemovePoint(i) where "i" is the index of the point found. RemovePoint(i) removes the data point.

Cheers, O.Couet

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Roger Mason Sent: Friday, February 02, 2007 4:55 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] removal of points from TGraph

Hello,

When I plot data using a TGraph I see that it is possible to remove points by right-clicking the mouse and selecting the appropriate option from the pop-up menu.

Does this delete those points from the underlying x,y arrays of the TGraph, or just from the display? I need to know if the "removed" points would be used in a subsequent fit of the data.

If removal does not edit the underlying arrays, then is there a method by which I _can edit those arrays (preferably some graphical method)?

Thanks for any help,

Roger Received on Fri Feb 02 2007 - 17:28:45 CET

This archive was generated by hypermail 2.2.0 : Fri Feb 02 2007 - 17:50:01 CET