Changeset 2383 in Sophya for trunk/SophyaPI/PIext/pihisto2d.cc
- Timestamp:
- May 16, 2003, 5:15:55 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pihisto2d.cc
r2380 r2383 42 42 UseFrac(); 43 43 SetStats(); 44 SetStatPosOffset(); 44 45 SetName("Histo2DDrw"); 45 46 // PIHisto2D has specific control tools … … 427 428 double cellWidth = 1.1 * (double)g->CalcStringWidth(label); 428 429 430 double ofpx = spoX*(XMax()-XMin()); 431 double ofpy = spoY*(YMax()-YMin()); 432 429 433 double xu, yu, cw; 430 434 // Les limites du cadre 431 435 xu = g->DeltaUCX(XMax(), -cellWidth); 432 436 yu = g->DeltaUCY(YMax(), -cellHeight); 433 g->DrawLine(xu,YMax(),xu,yu); 434 g->DrawLine(xu,yu,XMax(),yu); 437 double recw = XMax()-xu; 438 double rech = YMax()-yu; 439 xu += ofpx; yu += ofpy; 440 g->DrawBox(xu, yu, recw, rech); 435 441 436 442 // L'ecriture des labels … … 439 445 cw = (g->isAxeYDirUpDown()) ? -0.1*cH : -1.1*cH; 440 446 yu = g->DeltaUCY(YMax(),cw); 447 xu += ofpx; yu += ofpy; 441 448 g->DrawString(xu,yu,label); 442 449 … … 524 531 || opts=="nostat" || opts=="nostats") { 525 532 SetStats(false); 533 } else if(opts.substr(0,11) == "statposoff=") { 534 float xo=0., yo=0.; 535 sscanf(opts.substr(11).c_str(),"%g,%g",&xo, &yo); 536 SetStatPosOffset(xo, yo); 526 537 } else if(opts.substr(0,8)=="h2scale=") { 527 538 unsigned short t=TypScale(); float ls=LogScale();
Note:
See TracChangeset
for help on using the changeset viewer.