Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10146

TH2 FitSlicesX() and TH3 FitSlicesZ() don't use the axis range set by user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.16/00
    • Fix Version/s: 6.22/00
    • Component/s: None
    • Labels:
      None
    • Environment:

      CentOS Linux 7 (lxplus), gcc 4.8.5

      Description

      I'm not completely sure if this is more like a bug or a potential minor improvement. I'm sorry if this turns out inappropriate to be put under "bug". 

       

      For a 2d histogram (TH2), FitSlicesX() uses the x axis range set by the user (because it calls Projection) but ignores the y axis range set by the user. An intuitive example is shown in test2d.cpp.

       

      For a 3d histogram (TH3), FitSlicesZ() ignores all the axis ranges set by the user. An example is attached as test3d.cpp.

       

      This kind of bothers me because Projection, Profile and many other histogram methods all honor the axis range set by the user and I find this really convenient. Is it possible to make FitSlices behave the same?

       

      Thanks!

        Attachments

        1. test2d.cpp
          1.0 kB
        2. test3d.cpp
          1 kB

          Activity

            People

            • Assignee:
              moneta Lorenzo Moneta
              Reporter:
              wzou Wenkai Zou
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: