- Timestamp:
- Mar 10, 2006, 12:47:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Stats.cc
r76 r77 113 113 gp->yrange(yrange_max); 114 114 size_t plotno=1; 115 std::stringstream ss; 115 116 for (MapConstIter_ i= map_.begin(); i != map_.end(); i++) { 116 s td::stringstream s0;117 s 0<< "set key height " << 2*plotno;118 gp->command(s 0.str());117 ss.str(""); 118 ss << "set key height " << 2*plotno; 119 gp->command(ss.str()); 119 120 std::vector<u_int> x=accumulated(i->first); 120 s td::stringstream s;121 s << x.back() << " " << i->first;121 ss.str(""); 122 ss << x.back() << " " << i->first; 122 123 gp->yrange(yrange_max); 123 gp->linetitle(s.str()); 124 // Jari, reuse the stream above 125 std::stringstream s2; 126 s2 << "steps " << ++plotno; 127 gp->linestyle(s2.str()); 124 gp->linetitle(ss.str()); 125 ss.str(""); 126 ss << "steps " << ++plotno; 127 gp->linestyle(ss.str()); 128 128 gp->plot(x); 129 129 } 130 s td::stringstream sa;131 s a<< total.back() << " total";130 ss.str(""); 131 ss << total.back() << " total"; 132 132 gp->command("set key height 0"); 133 gp->linetitle(s a.str());133 gp->linetitle(ss.str()); 134 134 gp->linestyle("steps 1"); 135 135 gp->plot(total);
Note: See TracChangeset
for help on using the changeset viewer.