rootpy/rootpy — pull request #58 by ndawe (2012-11-11 00:17:31+00:00)
Title: Reverse order of branches in Tree.Draw expression to match Hist constructor order

When I create a ``Hist(x_bins, x_low, x_high, y_bins, y_low, y_high)`` I then expect the call tree.Draw('x:y') to plot x along the first axis and y along the second. By default ROOT does the opposite. This PR introduces a regex that should match all valid draw expressions and reverses the order of the branch names before passing to ROOT.TTree.Draw.