Ignore:
Timestamp:
06/12/08 15:35:15 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHEvent.cc

    r8434 r8940  
    295295
    296296    pad->GetPad(2)->cd(1);
    297     if (gPad->FindObject(Form("Proj_%p", this)))
    298     {
    299         TH1 *h=fHist->Projection(Form("Proj_%p", this));
     297    if (gPad->FindObject("Proj"))
     298    {
     299        TH1 *h=fHist->Projection("Proj");
    300300        if (h->GetMaximum()>0)
    301301            gPad->SetLogy();
     
    303303
    304304    pad->GetPad(2)->cd(2);
    305     if (gPad->FindObject(Form("ProfR_%p", this)))
    306         fHist->RadialProfile(Form("ProfR_%p", this));
     305    if (gPad->FindObject("ProfRad"))
     306        fHist->RadialProfile("ProfRad");
    307307
    308308    pad->GetPad(2)->cd(3);
    309     if (gPad->FindObject(Form("ProfA_%p", this)))
    310         fHist->AzimuthProfile(Form("ProfA_%p", this));
     309    if (gPad->FindObject("ProfAz"))
     310        fHist->AzimuthProfile("ProfAz");
    311311}
    312312
     
    341341    gPad->SetBorderMode(0);
    342342
    343     TH1 *h = fHist->Projection(Form("Proj_%p", this), 50);
     343    TH1 *h = fHist->Projection("Proj", 50);
    344344    h->SetTitle("Projection");
    345345    h->SetBit(kCanDelete);
     
    349349    gPad->SetBorderMode(0);
    350350
    351     h = (TH1*)fHist->RadialProfile(Form("ProfR_%p", this), 20);
     351    h = (TH1*)fHist->RadialProfile("ProfRad", 20);
    352352    h->SetTitle("Radial Profile");
    353353    h->SetBit(kCanDelete|TH1::kNoStats);
     
    356356    pad->cd(3);
    357357    gPad->SetBorderMode(0);
    358     h = (TH1*)fHist->AzimuthProfile(Form("ProfA_%p", this), 30);
     358    h = (TH1*)fHist->AzimuthProfile("ProfAz", 30);
    359359    h->SetTitle("Azimuth Profile");
    360360    h->SetBit(kCanDelete|TH1::kNoStats);
  • trunk/MagicSoft/Mars/mhist/MHWeather.cc

    r8934 r8940  
    249249    axis->SetTitleOffset(1.2);
    250250    axis->SetTextColor(col);
     251    axis->SetLabelColor(col);
    251252    axis->SetBit(kCanDelete);
    252253    axis->Draw();
     
    281282    gPad->SetGridx();
    282283    gPad->SetGridy();
    283     fHumidity.Draw("AP");
     284     fHumidity.Draw("AP");
    284285    fCloudiness.Draw("P");
    285286    DrawRightAxis("Cloudiness [%]");
     
    340341    if (gPad)
    341342    {
    342         fTemperature.GetHistogram()->GetYaxis()->SetTitleColor(kRed);
    343         //fTempSky.GetHistogram()->GetYaxis()->SetTitleColor(kBlue);
     343        fTemperature.GetYaxis()->SetLabelColor(kRed);
     344        fTemperature.GetYaxis()->SetTitleColor(kRed);
    344345        UpdateRightAxis(fTemperature); // Primary axis
    345346    }
     
    348349    if (gPad)
    349350    {
    350         fHumidity.GetHistogram()->GetYaxis()->SetTitleColor(kBlue);
    351         fHumidity.GetHistogram()->GetYaxis()->SetTitleOffset(1.2);
     351        fHumidity.GetYaxis()->SetLabelColor(kBlue);
     352        fHumidity.GetYaxis()->SetTitleColor(kBlue);
     353        fHumidity.GetYaxis()->SetTitleOffset(1.2);
    352354        UpdateRightAxis(fHumidity);    // Primary axis
    353355    }
Note: See TracChangeset for help on using the changeset viewer.