Changeset 875 for trunk/lib/Graph.h


Ignore:
Timestamp:
Nov 23, 2009, 7:49:49 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Fixes #403. Dates or revisions are used for x-axis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.h

    r872 r875  
    5656
    5757    /**
    58        \brief Plot \a data
     58       \brief Plot \a data using \a format for x-axis values when
     59       dates are used.
    5960    */
    60     void plot(const std::vector<unsigned int>& data);
     61    void plot(const std::vector<unsigned int>& data,
     62              const std::string& format="%y-%b");
     63
     64
     65    /**
     66       \brief Function setting the dates.
     67
     68       The date strings must be in svn format since underlying time
     69       conversion are done with the Date class.
     70
     71       \see Date::svntime(std::string)
     72    */
     73    static void set_dates(const std::vector<std::string>& date);
    6174
    6275    static const std::vector<std::string>& xticks(void);
     
    7790    unsigned int plots_; // keep track of number of plots drawn
    7891    plstream pls_;
     92    std::string title_;
    7993    static std::vector<std::string> xticks_;
    8094    double yrange_;
Note: See TracChangeset for help on using the changeset viewer.