Changeset 8940 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 06/12/08 15:35:15 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r8434 r8940 295 295 296 296 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"); 300 300 if (h->GetMaximum()>0) 301 301 gPad->SetLogy(); … … 303 303 304 304 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"); 307 307 308 308 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"); 311 311 } 312 312 … … 341 341 gPad->SetBorderMode(0); 342 342 343 TH1 *h = fHist->Projection( Form("Proj_%p", this), 50);343 TH1 *h = fHist->Projection("Proj", 50); 344 344 h->SetTitle("Projection"); 345 345 h->SetBit(kCanDelete); … … 349 349 gPad->SetBorderMode(0); 350 350 351 h = (TH1*)fHist->RadialProfile( Form("ProfR_%p", this), 20);351 h = (TH1*)fHist->RadialProfile("ProfRad", 20); 352 352 h->SetTitle("Radial Profile"); 353 353 h->SetBit(kCanDelete|TH1::kNoStats); … … 356 356 pad->cd(3); 357 357 gPad->SetBorderMode(0); 358 h = (TH1*)fHist->AzimuthProfile( Form("ProfA_%p", this), 30);358 h = (TH1*)fHist->AzimuthProfile("ProfAz", 30); 359 359 h->SetTitle("Azimuth Profile"); 360 360 h->SetBit(kCanDelete|TH1::kNoStats); -
trunk/MagicSoft/Mars/mhist/MHWeather.cc
r8934 r8940 249 249 axis->SetTitleOffset(1.2); 250 250 axis->SetTextColor(col); 251 axis->SetLabelColor(col); 251 252 axis->SetBit(kCanDelete); 252 253 axis->Draw(); … … 281 282 gPad->SetGridx(); 282 283 gPad->SetGridy(); 283 fHumidity.Draw("AP");284 fHumidity.Draw("AP"); 284 285 fCloudiness.Draw("P"); 285 286 DrawRightAxis("Cloudiness [%]"); … … 340 341 if (gPad) 341 342 { 342 fTemperature.Get Histogram()->GetYaxis()->SetTitleColor(kRed);343 //fTempSky.GetHistogram()->GetYaxis()->SetTitleColor(kBlue);343 fTemperature.GetYaxis()->SetLabelColor(kRed); 344 fTemperature.GetYaxis()->SetTitleColor(kRed); 344 345 UpdateRightAxis(fTemperature); // Primary axis 345 346 } … … 348 349 if (gPad) 349 350 { 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); 352 354 UpdateRightAxis(fHumidity); // Primary axis 353 355 }
Note:
See TracChangeset
for help on using the changeset viewer.