Changeset 1966 for trunk/MagicSoft/Mars/mgui
- Timestamp:
- 04/20/03 12:51:47 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r1965 r1966 278 278 pad->SetFillColor(16); 279 279 280 //281 // All this is necessary to get the background in the correct color282 //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 elements291 //292 280 AppendPad(""); 293 294 //295 // Necessary to visualize the background color (FIXME?)296 //297 gPad->Modified();298 gPad->Update();299 281 } 300 282 … … 309 291 const float w = gPad->GetWw(); 310 292 const float h = gPad->GetWh()*ratio; 293 294 gPad->Range(-fRange, -fRange, (2*ratio-1)*fRange, fRange); 311 295 312 296 if (h<w) … … 314 298 else 315 299 gPad->SetPad(0, (1.-w/h)/2, 1, (w/h+1)/2); 316 317 gPad->Range(-fRange, -fRange, (2*ratio-1)*fRange, fRange);318 300 } 319 301 … … 741 723 742 724 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)); 744 726 } 745 727 }
Note:
See TracChangeset
for help on using the changeset viewer.