Changeset 882 for trunk/lib


Ignore:
Timestamp:
Nov 24, 2009, 8:00:04 PM (14 years ago)
Author:
Jari Häkkinen
Message:

Renaming poorly selected varialble name.

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.cc

    r881 r882  
    6666    unsigned int xmin= date_xticks() ? Date(xticks_.front()).seconds() : 0;
    6767    unsigned int xmax= date_xticks() ? Date(xticks_.back()).seconds() : y.size();
    68     pls_.wind(xmin, xmax, 0, yrange_);
     68    pls_.wind(xmin, xmax, 0, ymax_);
    6969
    7070    if (!plots_) {
     
    7676        pls_.timefmt(timeformat.c_str());
    7777
    78       unsigned int ytickspacing=tick_spacing(yrange_);
     78      unsigned int ytickspacing=tick_spacing(ymax_);
    7979      unsigned int xtickspacing=tick_spacing(xmax-xmin);
    8080      pls_.box("bcnstd", xtickspacing, 1, "bcnstv", ytickspacing, 2);
     
    8383    ++plots_;
    8484
    85     print_legend(xmin,0,xmax,yrange_,legend);
     85    print_legend(xmin,0,xmax,ymax_,legend);
    8686    pls_.col0(1);
    8787    for (unsigned int i=1; i<y.size(); ++i) {
     
    137137
    138138
    139   double Graph::yrange(double ymax)
     139  double Graph::ymax(double ymax)
    140140  {
    141     return yrange_=ymax;
     141    return ymax_=ymax;
    142142  }
    143143
  • trunk/lib/Graph.h

    r878 r882  
    8282       xstart is 0 or the date of the first commit.
    8383    */
    84     double yrange(double ymax=0.0);
     84    double ymax(double ymax=0.0);
    8585
    8686  private:
     
    9393    std::string title_;
    9494    static std::vector<std::string> xticks_;
    95     double yrange_;
     95    double ymax_;
    9696  };
    9797
  • trunk/lib/Stats.cc

    r878 r882  
    368368    std::vector<unsigned int> total=get_vector(*stat, "all");   
    369369    double yrange_max=1.03*total.back()+1;
    370     gp.yrange(yrange_max);
     370    gp.ymax(yrange_max);
    371371
    372372    typedef std::vector<std::pair<std::string, std::vector<unsigned int> > > vec_type;
     
    412412    std::vector<unsigned int> total = get_vector(total_stats(), "all");
    413413    double yrange_max=1.03*total.back()+1;
    414     gp.yrange(yrange_max);
     414    gp.ymax(yrange_max);
    415415    std::stringstream ss;
    416416   
Note: See TracChangeset for help on using the changeset viewer.