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

TGraph axis titles not set

    XMLWordPrintable

    Details

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

      Linux

      Description

      Reported on the ROOT Forum at https://root-forum.cern.ch/t/titles-of-x-y-axis/27724

      The title of the axes of a TGraph are ignored, despite being set by the user.

      Reproducer script:

      {
         TGraph *g = new TGraph(2);
         g->SetMinimum(0.1); g->SetMaximum(10);
         g->SetNameTitle("g", "graph title;x axis title;y axis title");
         g->SetPoint(0, 1, 1); g->SetPoint(1, 2, 2);
         // g->SetTitle(g->GetTitle()); // bug fix: restore axes titles
         g->Draw("ALP");
      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: