Changeset 74 for trunk/lib/GnuplotFE.cc


Ignore:
Timestamp:
Mar 7, 2006, 4:46:59 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Improved web presentation. Y axises normalized, ticket ticket:15 resolved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/GnuplotFE.cc

    r73 r74  
    55
    66#include <string>
     7#include <sstream>
    78
    89
     
    1415
    1516
    16   void GnuplotFE::plot(const std::vector<double>& y, const std::string& format)
     17  void GnuplotFE::plot(const std::vector<u_int>& y, const std::string& format)
    1718  {
    1819    if (!date_.empty()) {
     
    2829
    2930
    30   void GnuplotFE::replot(const std::vector<double>& y)
     31  void GnuplotFE::replot(const std::vector<u_int>& y)
    3132  {
    3233    if (!date_.empty()) {
     
    4041
    4142
     43  double GnuplotFE::yrange(double ymax)
     44  {
     45    if (ymax<0)
     46      ymax=0;
     47    std::ostringstream cmd;
     48    cmd << "set yrang[0:";
     49    if (ymax)
     50      cmd << ymax;
     51    cmd << "]";
     52
     53    command(cmd.str());
     54    return ymax;
     55  }
     56
     57
    4258}} // end of namespace svnstat and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.