Sorting TGraphs

Dear all,

TGraph’s Sort function appears to be broken in PyROOT. The following piece of code doesn’t produce a straight line.

from ROOT import TGraph
from array import array
g = TGraph(3, array('d',[2,1,3]), array('d',[0,3,2]))
g.Sort()
g.Draw('al')

Cheers,
Pieter

Pieter,

seems a bug in CINT’s method lookup. I’ve opened https://savannah.cern.ch/bugs/index.php?78657.

Cheers,
Wim

Pieter,

now fixed in trunk. Thanks for reporting!

Cheers,
Wim