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

Palette title for TH3

    XMLWordPrintable

    Details

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

      all

    • Development:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: