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

Histograms filled with FillRandom do not display when using PLC, PMC options

    XMLWordPrintable

    Details

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

      any

      Description

      A slightly modified version of hist/histpalettecolor.C in which histograms are filled with FillRandom instead of individual {

      {FIll}

      s in a loop results in an empty canvas:

       

      The macro is:

       
      void histpalettecolor()
      {
         TCanvas *C = new TCanvas();
       
         TH1F *h1 = new TH1F ("h1","Histogram drawn with full circles",100,-4,4);
         TH1F *h2 = new TH1F ("h2","Histogram drawn with full squares",100,-4,4);
       
         h1->FillRandom("gaus");
         h2->FillRandom("gaus");
       
         h1->Draw("PLC PMC");
         h2->Draw("SAME PLC PMC");
      }
       
      void histpalettecolor()
      {
       TCanvas *C = new TCanvas();
       
      TH1F *h1 = new TH1F ("h1","Histogram drawn with full circles",100,-4,4);
       TH1F *h2 = new TH1F ("h2","Histogram drawn with full squares",100,-4,4);
       
      h1->FillRandom("gaus");
       h2->FillRandom("gaus");
       
      h1->Draw("PLC PMC");
       h2->Draw("SAME PLC PMC");
      }
      

        Attachments

          Activity

            People

            • Assignee:
              couet Olivier Couet
              Reporter:
              eguiraud Enrico Guiraud
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: