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

TH2::Draw with BOX option behaves unexpectedly when histogram has negative bins

    XMLWordPrintable

    Details

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

      SL Linux and MacOSX

      Description

      The attached macro creates two TH2F histograms, one has 3 bins with content 1.5 while the other has the same three bins filled with 1.5 in two cases and -1.5 in one case.
      When drawing them with the BOX option, the histogram with no negative bins draws as expected, while for the other all the zero-entry bins now have boxes drawn.
      I have tried a few ROOT versions and the problem is present in 5.34.28 and 6.06.06 but the plotting works as expected (i.e. the histograms appear the same except for the cross in the single negative bin) in 5.33.02. So it seems to have come in during the 5.34 series. I wonder if it might be related to whatever was done to fix ROOT-6305?

        Attachments

          Activity

            People

            Assignee:
            couet Olivier Couet
            Reporter:
            tlatham Thomas Edward Latham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: