- Timestamp:
- Jun 22, 2007, 12:10:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Stats.cc
r381 r382 156 156 } 157 157 158 159 void Stats::plot_init(const std::string& filename) const160 {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 }170 158 171 159 std::string Stats::plot(const std::string& filename, … … 188 176 gp->yrange(yrange_max); 189 177 190 191 178 typedef std::vector<std::pair<std::string, std::vector<u_int> > > vec_type; 192 179 vec_type author_cont; … … 216 203 ss << "steps " << --plotno+2; 217 204 gp->linestyle(ss.str()); 218 gp->plot(i->second , ss.str());205 gp->plot(i->second); 219 206 } 220 207 ss.str(""); … … 229 216 230 217 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"); 231 231 } 232 232 … … 274 274 gp->command("unset multiplot"); 275 275 gp->yrange(); 276 277 276 } 278 277
Note: See TracChangeset
for help on using the changeset viewer.