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

THStack::Draw("pfc") not working if GetMaximum() called before

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.14/04
    • Fix Version/s: 6.17/01
    • Component/s: Graphics
    • Labels:
      None
    • Environment:

      6.14.04-x86_64-slc6-gcc62-opt

      Description

      The "PFC"  draw option for THStack objects is broken by prior calls to the GetMaximum() method, i.e., the stack is rendered unfilled instead of being automatically colorized.

      Oddly enough, if the "nostack" option is added to the draw options, the correct behaviour is seen (automatically colorized hist).

       

      MWE: see attached thstackpalettecolor.C

      Buggy behaviour: see attached thstack_pfc_bug.pdf

      If I comment-out the call to GetMaximum, I get thstack_pfc_correct.pdf

       

        Attachments

          Activity

            People

            • Assignee:
              couet Olivier Couet
              Reporter:
              lgagnon Louis-Guillaume Gagnon
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual Start:
                Actual End: