Changeset 101 for trunk/lib/Stats.cc


Ignore:
Timestamp:
Jun 22, 2006, 11:00:06 AM (15 years ago)
Author:
Peter Johansson
Message:

closes #28 #18 and added some lippstick to the node daughters table output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r84 r101  
    131131
    132132
    133   std::string Stats::plot(const std::string& name) const
     133  std::string Stats::plot(const std::string& filename,
     134                          const std::string& title) const
    134135  {
    135136    GnuplotFE* gp=GnuplotFE::instance();
    136     gp->command(std::string("set term png; set output '")+name+"'");
    137     gp->command(std::string("set title '")+name+"'");
     137    gp->command(std::string("set term png; set output '")+filename+"'");
     138    gp->command(std::string("set title '")+title+"'");
    138139    gp->command("set key default");
    139140    gp->command("set key left Left reverse");
     
    168169    gp->yrange();
    169170
    170     return name;
     171    return filename;
    171172  }
    172173
Note: See TracChangeset for help on using the changeset viewer.