Changeset 205 in Sophya for trunk/SophyaPI/PIext/pihisto.cc
- Timestamp:
- Mar 1, 1999, 6:05:59 PM (27 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pihisto.cc
r203 r205 38 38 39 39 void 40 PIHisto::Draw(PIGraphicUC* g, float /*xmin*/, float /*ymin*/, float /*xmax*/, float/*ymax*/)40 PIHisto::Draw(PIGraphicUC* g, double /*xmin*/, double /*ymin*/, double /*xmax*/, double /*ymax*/) 41 41 { 42 42 bool oktrace = false; … … 46 46 // Marqeurs definis OU HBProf => marqueurs+Erreurs si il y en a 47 47 if (mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine); 48 floatx1,y1, x2,y2;49 floatbw = mHisto->BinWidth();48 double x1,y1, x2,y2; 49 double bw = mHisto->BinWidth(); 50 50 for (int i=0; i<mHisto->NBins(); i++) { 51 51 if(mHisto->Error(i)>0.) { … … 68 68 } 69 69 if (mLAtt != PI_NotDefLineAtt) { 70 floatx1,y1, x2, y2;70 double x1,y1, x2, y2; 71 71 x1 = mHisto->BinLowEdge(0); 72 72 y1 = 0; … … 85 85 if( !oktrace ) { 86 86 for(int i=0; i<mHisto->NBins(); i++) { 87 floatleft = mHisto->BinLowEdge(i);88 floatwidth = mHisto->BinWidth();89 floatbottom = 0;90 floatheight = (*mHisto)(i);87 double left = mHisto->BinLowEdge(i); 88 double width = mHisto->BinWidth(); 89 double bottom = 0; 90 double height = (*mHisto)(i); 91 91 g->DrawFBox(left,bottom,width,height); 92 92 g->DrawLine(left, bottom, left, bottom + height); // Au moins une ligne... … … 103 103 // if (mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine); 104 104 g->SelLine(PI_ThinLine); 105 floatcellHeight = (YMax() - YMin()) * 0.05;106 floatcellWidth = (XMax() - XMin()) * 0.23;105 double cellHeight = (YMax() - YMin()) * 0.05; 106 double cellWidth = (XMax() - XMin()) * 0.23; 107 107 g->DrawLine(XMax() - cellWidth, YMax(), 108 108 XMax() - cellWidth, YMax() - cellHeight);
Note:
See TracChangeset
for help on using the changeset viewer.