Changeset 145 in Sophya for trunk/SophyaPI
- Timestamp:
- Sep 21, 1998, 6:59:44 PM (27 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pihisto.cc
r144 r145 32 32 hmin -= v1; hmax += v1; 33 33 } 34 if(hmax<=hmin) hmax += 1.; 34 35 SetLimits(mHisto->XMin(), mHisto->XMax(), hmin, hmax); 35 36 SetAxesFlags(kBoxAxes | kExtTicks | kLabels); … … 43 44 if (mMrk != PI_NotDefMarker || mHisto->ClassId() == HProf::classId ) { 44 45 // Marqeurs definis OU HBProf => marqueurs+Erreurs si il y en a 46 if (mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine); 45 47 float x1,y1, x2,y2; 46 48 float bw = mHisto->BinWidth(); 47 49 for (int i=0; i<mHisto->NBins(); i++) { 48 // barres d'erreur verticales 49 x1 = x2 = mHisto->BinCenter(i); 50 y1 = (*mHisto)(i) - mHisto->Error(i); 51 y2 = (*mHisto)(i) + mHisto->Error(i); 52 g->DrawLine(x1,y1, x1, y2); 53 // limites de barres d'erreurs (horizontales) 54 x1 -= bw/3.; x2 += bw/3.; 55 g->DrawLine(x1,y1, x2, y1); 56 g->DrawLine(x1,y2, x2, y2); 50 if(mHisto->Error(i)>0.) { 51 // barres d'erreur verticales 52 x1 = x2 = mHisto->BinCenter(i); 53 y1 = (*mHisto)(i) - mHisto->Error(i); 54 y2 = (*mHisto)(i) + mHisto->Error(i); 55 g->DrawLine(x1,y1, x1, y2); 56 // limites de barres d'erreurs (horizontales) 57 x1 -= bw/3.; x2 += bw/3.; 58 g->DrawLine(x1,y1, x2, y1); 59 g->DrawLine(x1,y2, x2, y2); 60 } 57 61 // le marqueur 58 62 x1 = mHisto->BinCenter(i);
Note:
See TracChangeset
for help on using the changeset viewer.