Changeset 2523 in Sophya for trunk/SophyaPI/PIext/pihisto.cc


Ignore:
Timestamp:
Mar 19, 2004, 2:06:08 PM (22 years ago)
Author:
cmv
Message:

OptionToString cmv 19/03/04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pihisto.cc

    r2517 r2523  
    196196           || opts=="nostat" || opts=="nostats") SetStats(false);
    197197    else if(opts=="err")      SetError(1);
    198     else if(opts=="noerr")    SetError(-1);
     198    else if(opts=="noerr" || opts=="nerr")    SetError(-1);
    199199    else if(opts=="autoerr")  SetError(0);
    200200    else if(opts=="fill")     SetFilled(true);
    201     else if(opts=="nofill")   SetFilled(false);
     201    else if(opts=="nofill" || opts=="nfill")   SetFilled(false);
    202202    else if(opts.substr(0,11) == "statposoff=") {
    203203      float xo=0., yo=0.;
     
    217217}
    218218
     219int
     220PIHisto::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
    219236void
    220237PIHisto::GetOptionsHelpInfo(string& info)
     
    223240info += "  sta,stat,stats:            activate   statistic display\n";
    224241info += "  nsta,nstat,nostat,nostats: deactivate statistic display\n";
    225 info += "  err / nerr : draw, do not draw error bars\n";
     242info += "  err / noerr,nerr : draw, do not draw error bars\n";
    226243info += "  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";
     244info += "  fill / nofill,nfill : fill, do not fill bars with selected color\n";
    228245info += "  statposoff=OffsetX,OffsetY : Position offset for Stats drawing \n";
    229246info += "       as a fraction of total size \n";
Note: See TracChangeset for help on using the changeset viewer.