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

Palette title for TH3

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • master
    • 6.21/01
    • Graphics
    • None
    • all

    Description

      Reported here: https://root-forum.cern.ch/t/z-bad-label-for-palette-axis-in-th3d/39179

      Reproducer:

      {
         auto h = new TH3D("array_histo", "array_histo", 10, 0, 10, 10, 0, 10, 10, 0, 10);
       
         h->Fill(1,1,1,5);
         h->Fill(9,9,9,2);
       
         h->GetZaxis()->SetTitle("aaa");
       
         h->Draw("box2z");
         gPad->SetMargin(0.1, 0.2, 0.1, 0.1);
         gPad->Modified();
         gPad->Update();
       
         auto p = (TPaletteAxis*)(h->FindObject("palette"));
         p->GetAxis()->SetTitle("vvv");
         gPad->Modified();
         gPad->Update();
      }
      

      Attachments

        Activity

          People

            couet Olivier Couet
            couet Olivier Couet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: