Ignore:
Timestamp:
04/20/03 12:51:47 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgui/MCamDisplay.cc

    r1965 r1966  
    278278    pad->SetFillColor(16);
    279279
    280     //
    281     // All this is necessary to get the background in the correct color
    282     //
    283     pad->Divide(1,1);
    284     pad->cd(1);
    285 
    286     gPad->SetBorderMode(0);
    287     gPad->SetFillColor(16);
    288 
    289     //
    290     // set the color palette for the TBox elements
    291     //
    292280    AppendPad("");
    293 
    294     //
    295     // Necessary to visualize the background color (FIXME?)
    296     //
    297     gPad->Modified();
    298     gPad->Update();
    299281}
    300282
     
    309291    const float w = gPad->GetWw();
    310292    const float h = gPad->GetWh()*ratio;
     293
     294    gPad->Range(-fRange, -fRange, (2*ratio-1)*fRange, fRange);
    311295
    312296    if (h<w)
     
    314298    else
    315299        gPad->SetPad(0, (1.-w/h)/2, 1, (w/h+1)/2);
    316 
    317     gPad->Range(-fRange, -fRange, (2*ratio-1)*fRange, fRange);
    318300}
    319301
     
    741723
    742724        TText &txt = *GetText(i);
    743         txt.SetText(txt.GetX(), txt.GetY(), Form("%5.1f", val));
     725        txt.SetText(txt.GetX(), txt.GetY(), Form(val<1e6?"%5.1f":"%5.1e", val));
    744726    }
    745727}
Note: See TracChangeset for help on using the changeset viewer.