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

SetTimeDisplay is set to false when SetLogy is enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.04/06
    • Fix Version/s: 6.06/00, 5.34/36
    • Component/s: Graphics
    • Environment:

      CentOs 6 64-bits

    • Platforms:
      x86_64-slc6-gcc48-opt
    • Development:

      Description

      Run this following macro

      #include <TGraph.h>
      #include <TAxis.h>
       
      using namespace std;
       
      void test() {
       
        float x[4] = {1,2,3,4};
        float y[4] = {2,4,6e36,8};
        TGraph *g = new TGraph(4,x,y);
        g->SetTitle("test");
        g->GetXaxis()->SetTimeDisplay(true);
        g->Draw();
      }

      A graph appears with an X-axis shown as a time. Click right and select "setlogy"
      See that the x-axis is not shown as a time.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: