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

Redrawing of axis label with TLatex text fails

    XMLWordPrintable

    Details

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

      ROOT 6.06/04 and 5.34/18

      Description

      If using special characters in axis labels, redrawing of it fails. If using

        auto hist = new TH1F("name","title",1,0,1);
        hist->GetXaxis()->SetBinLabel(1,"t#bar{t} hadronic");
        hist->Draw();
        gPad->RedrawAxis(); //trigger the bug

      The last line will trigger the addition of a spurious line on top of the label.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: