Ignore:
Timestamp:
08/03/06 18:48:57 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

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

    r7224 r7841  
    9696    fRate.SetYTitle("Counts");
    9797
    98     fRateTime.SetMinimum(0);
    99 
    10098    fRate.SetDirectory(0);
    10199    fRateZd.SetDirectory(0);
     
    289287void MHRate::Paint(Option_t *o)
    290288{
     289    // If this is set to early the plot remains empty in root 5.12/00
     290    if (fRateTime.GetN()>0)
     291        fRateTime.SetMinimum(0);
     292
    291293    DrawGraph(fRateTime, "f [Hz]");
    292294    /*
  • trunk/MagicSoft/Mars/mhist/MHWeather.cc

    r7033 r7841  
    9696    InitGraph(fEventRate);
    9797
    98     fHumidity.SetMinimum(0);
    99     fHumidity.SetMaximum(100);
    100     fTemperature.SetMinimum(-25);
    101     fTemperature.SetMaximum(45);
    102     fWindSpeed.SetMinimum(0);
    103     fSolarRadiation.SetMinimum(0);
    104     fEventRate.SetMinimum(0);
    105 
    10698    fHumidity.SetMarkerColor(kBlue);
    10799    fTemperature.SetMarkerColor(kRed);
     
    262254void MHWeather::Paint(Option_t *o)
    263255{
     256    // If this is set to early the plot remains empty in root 5.12/00
     257    if (fHumidity.GetN()>0)
     258    {
     259        fHumidity.SetMinimum(0);
     260        fHumidity.SetMaximum(100);
     261    }
     262    if (fTemperature.GetN()>0)
     263    {
     264        fTemperature.SetMinimum(-25);
     265        fTemperature.SetMaximum(45);
     266    }
     267    if (fWindSpeed.GetN()>0)
     268        fWindSpeed.SetMinimum(0);
     269    if (fSolarRadiation.GetN()>0)
     270        fSolarRadiation.SetMinimum(0);
     271    if (fEventRate.GetN()>0)
     272        fEventRate.SetMinimum(0);
     273
    264274    DrawGraph(fHumidity,       "H [%]");
    265275    DrawGraph(fSolarRadiation, "R [W/m^{2}]");
Note: See TracChangeset for help on using the changeset viewer.