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

Problem Drawing Histograms after TH2::FitSlicesX/Y

    XMLWordPrintable

    Details

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

      All

      Description

      If one creates a Canvas and call pad->Divide(,..) before calling TH2::FitSlicesX/Y the pad is not divided in subpads and only the last histogram is shown. 

      If One calls a second time FitSlices on another histogram all the pads seems to be deleted. 

      Attached is the example reproducing the issue. Calling Divide after FitSlices  everything seems fine, but when fitting a second time the last pad of the first canvas seems  to be deleted 

       

      See the attached macto. This problem has been reported in 

      https://root-forum.cern.ch/t/using-fitslicey-for-multiple-th2d/37930/

       

       

      test_draw_fitslices_histo.C

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: