[root] / trunk / hist / hist / src / TMultiGraph.cxx Repository:
ViewVC logotype

Diff of /trunk/hist/hist/src/TMultiGraph.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 43634, Wed Apr 4 08:06:49 2012 UTC revision 44507, Mon Jun 4 12:30:41 2012 UTC
# Line 1283  Line 1283 
1283    
1284    
1285  //______________________________________________________________________________  //______________________________________________________________________________
1286  void TMultiGraph::SavePrimitive(ostream &out, Option_t *option /*= ""*/)  void TMultiGraph::SavePrimitive(std::ostream &out, Option_t *option /*= ""*/)
1287  {  {
1288     // Save primitive as a C++ statement(s) on output stream out     // Save primitive as a C++ statement(s) on output stream out
1289    
1290     char quote = '"';     char quote = '"';
1291     out<<"   "<<endl;     out<<"   "<<std::endl;
1292     if (gROOT->ClassSaved(TMultiGraph::Class())) {     if (gROOT->ClassSaved(TMultiGraph::Class())) {
1293        out<<"   ";        out<<"   ";
1294     } else {     } else {
1295        out<<"   TMultiGraph *";        out<<"   TMultiGraph *";
1296     }     }
1297     out<<"multigraph = new TMultiGraph();"<<endl;     out<<"multigraph = new TMultiGraph();"<<std::endl;
1298     out<<"   multigraph->SetName("<<quote<<GetName()<<quote<<");"<<endl;     out<<"   multigraph->SetName("<<quote<<GetName()<<quote<<");"<<std::endl;
1299     out<<"   multigraph->SetTitle("<<quote<<GetTitle()<<quote<<");"<<endl;     out<<"   multigraph->SetTitle("<<quote<<GetTitle()<<quote<<");"<<std::endl;
1300    
1301     if (fGraphs) {     if (fGraphs) {
1302        TObjOptLink *lnk = (TObjOptLink*)fGraphs->FirstLink();        TObjOptLink *lnk = (TObjOptLink*)fGraphs->FirstLink();
# Line 1310  Line 1310 
1310     }     }
1311     const char *l = strstr(option,"th2poly");     const char *l = strstr(option,"th2poly");
1312     if (l) {     if (l) {
1313        out<<"   "<<l+7<<"->AddBin(multigraph);"<<endl;        out<<"   "<<l+7<<"->AddBin(multigraph);"<<std::endl;
1314     } else {     } else {
1315        out<<"   multigraph->Draw(" <<quote<<option<<quote<<");"<<endl;        out<<"   multigraph->Draw(" <<quote<<option<<quote<<");"<<std::endl;
1316     }     }
1317     TAxis *xaxis = GetXaxis();     TAxis *xaxis = GetXaxis();
1318     TAxis *yaxis = GetYaxis();     TAxis *yaxis = GetYaxis();

Legend:
Removed from v.43634  
changed lines
  Added in v.44507

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9