Changeset 382


Ignore:
Timestamp:
Jun 22, 2007, 12:10:02 AM (13 years ago)
Author:
Jari Häkkinen
Message:

Fixes #220.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r381 r382  
    156156  }
    157157
    158 
    159   void Stats::plot_init(const std::string& filename) const
    160   {
    161     GnuplotFE* gp=GnuplotFE::instance();
    162     gp->command("set term png");
    163     gp->command("set output '"+filename+"'");
    164     gp->command("set xtics nomirror");
    165     gp->command("set ytics nomirror");
    166     gp->command("set key default");
    167     gp->command("set key left Left reverse");
    168     gp->command("set multiplot");
    169   }
    170158
    171159  std::string Stats::plot(const std::string& filename,
     
    188176    gp->yrange(yrange_max);
    189177
    190 
    191178    typedef std::vector<std::pair<std::string, std::vector<u_int> > > vec_type;
    192179    vec_type author_cont;
     
    216203      ss << "steps " << --plotno+2;
    217204      gp->linestyle(ss.str());
    218       gp->plot(i->second, ss.str());
     205      gp->plot(i->second);
    219206    }
    220207    ss.str("");
     
    229216
    230217    return filename;
     218  }
     219
     220
     221  void Stats::plot_init(const std::string& filename) const
     222  {
     223    GnuplotFE* gp=GnuplotFE::instance();
     224    gp->command("set term png");
     225    gp->command("set output '"+filename+"'");
     226    gp->command("set xtics nomirror");
     227    gp->command("set ytics nomirror");
     228    gp->command("set key default");
     229    gp->command("set key left Left reverse");
     230    gp->command("set multiplot");
    231231  }
    232232
     
    274274    gp->command("unset multiplot");
    275275    gp->yrange();
    276    
    277276  }
    278277
Note: See TracChangeset for help on using the changeset viewer.