Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change of y range after compose/diff and div has no effect #127

Open
schmitts opened this issue Apr 12, 2013 · 1 comment
Open

change of y range after compose/diff and div has no effect #127

schmitts opened this issue Apr 12, 2013 · 1 comment

Comments

@schmitts
Copy link
Member

discussed on [email protected]

sschmitt:

Why does the following not change the y range?

http://127.0.0.1:6543/browse/docs/data/test_file.root/means/hist1,hist2/!compose/div/!range/y/20/40

On the other hand,

http://127.0.0.1:6543/browse/docs/data/test_file.root/means/hist1,hist2/!compose/stack/!range/y/20/40

works.

pwaller:

So the code which actually does the composition happens after the !range.
!compose is just an abstract thing which works against the next
multitraverser to its left (or should), regardless of where it exists in
the URL.

!range just calls SetRangeUser() on the object(s).

I think !compose/div produces a new histogram, rather than using existing
ones as !compose/stack does. Therefore, the range isn't transferred from
the input histograms to the new plot. That would be my guess.

Not sure what the solution is.

You could introduce a ?range parameter which affects the output of the
composition, but then this seems more complicated.

@pwaller
Copy link
Member

pwaller commented Apr 12, 2013

Another thing which occurred to me is to have some sort of terminator:

/path/to/*/!compose/stack/additional/stuff/!/!argument_for_compose

Above, I used !, which would indicate the end of the "multi-traversal" and the start of arguments to the composed object itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants