Tooltip with points from TGraphErrors


I would like to plot a lots of points via a TGraphErrors and I would like to have the possibility to assign to each point a string that would pop-up as a tooltip when placing the mouse on the pad when ROOT is launched.

I saw that ROOT have some tooltip options but don’t know how to make it work for such a particular example, i.e. using TGraphErrors.

Thanks in advance for that.


There is no such option.
There are built-in ToolTips showing information about the object under the mouse pointer via GetObjectInfo(). They can be enabled via the TCanvas menu (View -> Tooltip Info) or via $ROOTSYS/etc/system.rootrc (or your own $HOME/.rootrc) file, by setting the Canvas.ShowToolTips entry to true.
But they will only display informations about the TGraphErrors itself…

Cheers, Bertrand.