Changeset 11240


Ignore:
Timestamp:
Jul 1, 2011, 10:52:49 AM (9 years ago)
Author:
tbretz
Message:
Set default y-scale of Rate plot to [0,1010]
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r11239 r11240  
    25342534
    25352535#ifdef HAVE_ROOT
    2536     void DrawTimeFrame(const char *ytitle)
     2536    TH1 *DrawTimeFrame(const char *ytitle)
    25372537    {
    25382538        const double tm = Time().RootTime();
     
    25532553        h.GetYaxis()->SetLabelSize(0.025);
    25542554        h.GetYaxis()->SetTitleOffset(1.2);
    2555 //        h.GetYaxis()->SetTitleSize(1.2);
    2556         h.DrawCopy()->SetDirectory(0);
     2555        //        h.GetYaxis()->SetTitleSize(1.2);
     2556
     2557        TH1 *cpy = h.DrawCopy();
     2558        cpy->SetDirectory(0);
     2559        return cpy;
    25572560    }
    25582561#endif
     
    27662769        c->cd();
    27672770
    2768         DrawTimeFrame("Trigger rate [Hz]");
     2771        TH1 *hf = DrawTimeFrame("Trigger rate [Hz]");
     2772        hf->GetYaxis()->SetRangeUser(0, 1010);
    27692773
    27702774        fTriggerCounter0 = -1;
Note: See TracChangeset for help on using the changeset viewer.