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

SetTimeDisplay is set to false when SetLogy is enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Medium
    • Resolution: Fixed
    • 6.04/06
    • 6.06/00, 5.34/36
    • Graphics
    • None
    • CentOs 6 64-bits

    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

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

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: