Changeset 886


Ignore:
Timestamp:
Nov 25, 2009, 12:11:02 AM (11 years ago)
Author:
Jari Häkkinen
Message:

Fixing initialization issue when revisions are used for x-axis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.cc

    r885 r886  
    8686      pls_.col0(2);
    8787
    88       if (date_xticks())
     88      std::string xopt("bcnstv");
     89      if (date_xticks()) {
    8990        pls_.timefmt(timeformat_.c_str());
     91        xopt="bcnstd";
     92      }
    9093
    9194      unsigned int ytickspacing=tick_spacing(ymax_-ymin_);
    9295      unsigned int xtickspacing=tick_spacing(xmax_-xmin_);
    93       pls_.box("bcnstd", xtickspacing, 1, "bcnstv", ytickspacing, 2);
     96      pls_.box(xopt.c_str(), xtickspacing, 1, "bcnstv", ytickspacing, 2);
    9497      pls_.lab("Date", "Number of lines", title_.c_str());
    9598    }
Note: See TracChangeset for help on using the changeset viewer.