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

Statbox SetFillAlpha() inconsistent for THStack::Draw("") and THStack::Draw("nostack")

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Graphics
    • Labels:
      None
    • Environment:

      Root 6.09/03 and 6.14/06

       

    • Development:

      Description

      When drawing THStack objects, the stat boxes appear to be drawn multiple times when using the Draw("EMPTY") option but appear correctly when using Draw("NoStack"). By multiple times I mean that for the same color and alpha value in SetFillColorAlpha() for the histograms and statboxes differ, with the statboxes being substantially higher alpha which no longer matches the histogram coloration. Additionally, the text within the statbox appears slightly bolder, also indicating being drawn multiple times and overlayed. The exception is the last histogram added which has normal text and fill color which matches the histogram. NoStack.pdf

        Attachments

        1. NoStack.pdf
          17 kB
        2. Stack.pdf
          18 kB
        3. THStackTest.cpp
          2 kB

          Activity

            People

            • Assignee:
              couet Olivier Couet
              Reporter:
              5adfd69ceb25ff4110e8 William Painter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: