Changeset 3269 in Sophya for trunk/SophyaPI/PIext/graphexecut.cc


Ignore:
Timestamp:
Jun 19, 2007, 4:14:55 PM (18 years ago)
Author:
ansari
Message:

Ajout des commandes nt2dcn et nt2dci , modifs PINtuple pour permettre l'utilisation d'une colonne pour specifier la couleur de trace de chaque marker - Reza 19/06/2007

File:
1 edited

Legend:

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

    r2781 r3269  
    285285  string ph = "";
    286286  mObjMgr->DisplayNT(tokens[0], tokens[1], tokens[2], ph, tokens[3], tokens[4], ph,
    287                      tokens[5], tokens[6], tokens[7], false);
     287                     tokens[5], tokens[6], ph, false, tokens[7], false);
     288  }
     289else if (kw == "nt2dcn") {
     290  if (tokens.size() < 4) {
     291    cout << "Usage: nt2dcn nameobj color varx vary [errx erry wt label opt]" << endl;
     292    return(0);
     293  }
     294  while (tokens.size() < 9) tokens.push_back("");
     295  string ph = "";
     296  mObjMgr->DisplayNT(tokens[1], tokens[2], tokens[3], ph, tokens[4], tokens[5], ph,
     297                     tokens[6], tokens[7], tokens[0], false, tokens[8], false);
     298  }
     299else if (kw == "nt2dci") {
     300  if (tokens.size() < 4) {
     301    cout << "Usage: nt2dci nameobj color varx vary [errx erry wt label opt]" << endl;
     302    return(0);
     303  }
     304  while (tokens.size() < 9) tokens.push_back("");
     305  string ph = "";
     306  mObjMgr->DisplayNT(tokens[1], tokens[2], tokens[3], ph, tokens[4], tokens[5], ph,
     307                     tokens[6], tokens[7], tokens[0], true, tokens[8], false);
    288308  }
    289309else if (kw == "nt3d") {
     
    685705usage = "Displays Points (X-Y) [with error-bar / Weight / Label ] from an NTuple ";
    686706usage += "\n Usage : nt2d nameobj varx vary [errx erry wt label graphic_attributes]";
    687 usage += "\n  Related commands: disp  surf  nt3d  gfd2d vecplot"; 
     707usage += "\n  Related commands: disp surf nt2dcn nt2dci nt3d  gfd2d vecplot"; 
     708mpiac->RegisterCommand(kw, usage, this, grp);
     709kw = "nt2dcn";
     710usage = "Displays Points (X-Y) [with error-bar / Weight / Label ] from an NTuple ";
     711usage = "   with colors specified by a column content (as color names) ";
     712usage += "\n Usage : nt2dcn nameobj color varx vary [errx erry wt label graphic_attributes]";
     713usage += "\n  Related commands: disp  surf  nt2d nt2dci nt3d  gfd2d vecplot"; 
     714mpiac->RegisterCommand(kw, usage, this, grp);
     715kw = "nt2dci";
     716usage = "Displays Points (X-Y) [with error-bar / Weight / Label ] from an NTuple ";
     717usage = "   with colors specified by a column content (as color index) ";
     718usage += "\n Usage : nt2dci nameobj color varx vary [errx erry wt label graphic_attributes]";
     719usage += "\n  Related commands: disp  surf  nt2d nt2dci nt3d  gfd2d vecplot"; 
    688720mpiac->RegisterCommand(kw, usage, this, grp);
    689721kw = "nt3d";
Note: See TracChangeset for help on using the changeset viewer.