Changeset 2523 in Sophya for trunk/SophyaPI/PIext/pihisto.cc
- Timestamp:
- Mar 19, 2004, 2:06:08 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pihisto.cc
r2517 r2523 196 196 || opts=="nostat" || opts=="nostats") SetStats(false); 197 197 else if(opts=="err") SetError(1); 198 else if(opts=="noerr" ) SetError(-1);198 else if(opts=="noerr" || opts=="nerr") SetError(-1); 199 199 else if(opts=="autoerr") SetError(0); 200 200 else if(opts=="fill") SetFilled(true); 201 else if(opts=="nofill" ) SetFilled(false);201 else if(opts=="nofill" || opts=="nfill") SetFilled(false); 202 202 else if(opts.substr(0,11) == "statposoff=") { 203 203 float xo=0., yo=0.; … … 217 217 } 218 218 219 int 220 PIHisto::OptionToString(vector<string> & opt) const 221 { 222 PIDrawer::OptionToString(opt); 223 224 if(stats) opt.push_back("stat"); else opt.push_back("nstat"); 225 if(error==-1) opt.push_back("noerr"); 226 else if(error==0) opt.push_back("autoerr"); 227 else if(error==1) opt.push_back("err"); 228 if(filled) opt.push_back("fill"); else opt.push_back("nofill"); 229 230 char str[256]; sprintf(str,"statposoff=%g,%g",spoX,spoY); 231 opt.push_back(str); 232 233 return 1; 234 } 235 219 236 void 220 237 PIHisto::GetOptionsHelpInfo(string& info) … … 223 240 info += " sta,stat,stats: activate statistic display\n"; 224 241 info += " nsta,nstat,nostat,nostats: deactivate statistic display\n"; 225 info += " err / n err : draw, do not draw error bars\n";242 info += " err / noerr,nerr : draw, do not draw error bars\n"; 226 243 info += " autoerr : draw error bars if Marker drawing requested OR Profile histo\n"; 227 info += " fill / nofill : fill, do not fill bars with selected color\n";244 info += " fill / nofill,nfill : fill, do not fill bars with selected color\n"; 228 245 info += " statposoff=OffsetX,OffsetY : Position offset for Stats drawing \n"; 229 246 info += " as a fraction of total size \n";
Note:
See TracChangeset
for help on using the changeset viewer.