Image and tgraph


I have to add a point in a graph like the one in attachment.
The graph is available only as image (.png .gif or .ps).
I would like to convert it in a true root tgraph.
Is there some way to do this?

Thanks in advance.

Do you need something like this: … ed_all.png … butionPage

We are currently working on a standard ROOT utility to reconstruct automatically objects like TGraph, TGraphErrors, TH1, TH2 from a raster image (.gif, .jpg, etc)


xyscan is what I was looking for

The simple correction of the xyscan source code can significantly simplify its use. It allows to use the double click to quickly move the cross-hair pointer to desirable screen location. The correction will be used with the next xyscan release. However, you are advised to apply it right now.

[code]— xyscanWindow.cpp 2007-07-18 12:33:14.000000000 -0400
+++ xyscanWindow.cpp.hold 2008-10-27 18:58:57.000000000 -0400
@@ -694,7 +694,9 @@
leftMousePressedNearCrosshair = false;
return true;

  •    else if (event->type() == QEvent::GraphicsSceneMouseMove &&  leftMousePressedNearCrosshair) {
  •    else if ( (event->type() == QEvent::GraphicsSceneMouseMove 
  •                && leftMousePressedNearCrosshair )
  •              || event->type() == QEvent::GraphicsSceneMouseDoubleClick
  •       ) {
            mevt = dynamic_cast<QGraphicsSceneMouseEvent*>(event);
           //  In principle straighforward except for the case[/code]