Changeset 878 for trunk/lib/Graph.h


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

Addresses #402. Legends in place. Not the same order as wih gnuplot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.h

    r875 r878  
    4141       more output formats than SVG.
    4242    */
    43     Graph(const std::string& filename);
     43    explicit Graph(const std::string& filename);
    4444
    4545    /**
     
    5656
    5757    /**
    58        \brief Plot \a data using \a format for x-axis values when
     58       \brief Plot \a data using \a timeformat for x-axis values when
    5959       dates are used.
    6060    */
    61     void plot(const std::vector<unsigned int>& data,
    62               const std::string& format="%y-%b");
    63 
     61    void plot(const std::vector<unsigned int>& data, const std::string& legend,
     62              const std::string& timeformat="%y-%b");
    6463
    6564    /**
     
    8685
    8786  private:
     87    void print_legend(PLFLT xmin, PLFLT ymin, PLFLT xmax, PLFLT ymax,
     88                      const std::string& legend);
    8889    unsigned int tick_spacing(const double range) const;
    8990
Note: See TracChangeset for help on using the changeset viewer.