Changeset 882
Legend:
 Unmodified
 Added
 Removed

trunk/lib/Graph.cc
r881 r882 66 66 unsigned int xmin= date_xticks() ? Date(xticks_.front()).seconds() : 0; 67 67 unsigned int xmax= date_xticks() ? Date(xticks_.back()).seconds() : y.size(); 68 pls_.wind(xmin, xmax, 0, y range_);68 pls_.wind(xmin, xmax, 0, ymax_); 69 69 70 70 if (!plots_) { … … 76 76 pls_.timefmt(timeformat.c_str()); 77 77 78 unsigned int ytickspacing=tick_spacing(y range_);78 unsigned int ytickspacing=tick_spacing(ymax_); 79 79 unsigned int xtickspacing=tick_spacing(xmaxxmin); 80 80 pls_.box("bcnstd", xtickspacing, 1, "bcnstv", ytickspacing, 2); … … 83 83 ++plots_; 84 84 85 print_legend(xmin,0,xmax,y range_,legend);85 print_legend(xmin,0,xmax,ymax_,legend); 86 86 pls_.col0(1); 87 87 for (unsigned int i=1; i<y.size(); ++i) { … … 137 137 138 138 139 double Graph::y range(double ymax)139 double Graph::ymax(double ymax) 140 140 { 141 return y range_=ymax;141 return ymax_=ymax; 142 142 } 143 143 
trunk/lib/Graph.h
r878 r882 82 82 xstart is 0 or the date of the first commit. 83 83 */ 84 double y range(double ymax=0.0);84 double ymax(double ymax=0.0); 85 85 86 86 private: … … 93 93 std::string title_; 94 94 static std::vector<std::string> xticks_; 95 double y range_;95 double ymax_; 96 96 }; 97 97 
trunk/lib/Stats.cc
r878 r882 368 368 std::vector<unsigned int> total=get_vector(*stat, "all"); 369 369 double yrange_max=1.03*total.back()+1; 370 gp.y range(yrange_max);370 gp.ymax(yrange_max); 371 371 372 372 typedef std::vector<std::pair<std::string, std::vector<unsigned int> > > vec_type; … … 412 412 std::vector<unsigned int> total = get_vector(total_stats(), "all"); 413 413 double yrange_max=1.03*total.back()+1; 414 gp.y range(yrange_max);414 gp.ymax(yrange_max); 415 415 std::stringstream ss; 416 416
Note: See TracChangeset
for help on using the changeset viewer.