Changeset 63 for trunk/lib/Gnuplot.h


Ignore:
Timestamp:
Jan 20, 2006, 12:07:36 AM (16 years ago)
Author:
Peter Johansson
Message:

Fixed problem with mapping revison to date. Removed mkstemps. name of
png files are now in line with their html file name. Binary works on
svnstat, but is asserted on c++_tools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Gnuplot.h

    r60 r63  
    1010#include <string>
    1111#include <vector>
     12
    1213
    1314namespace theplu {
     
    6566    ///
    6667    void date_plot(const std::vector<double>& y,
    67                    const std::string& format="%y-%b");
     68                   const std::string& format="%y-%b-%d");
    6869    ///
    6970    ///
    7071    ///
    7172    void date_replot(const std::vector<double>& y,
    72                      const std::string& format="%y-%b");
     73                     const std::string& format="%y-%b-%d");
    7374
    7475    ///
     
    157158      tmp.close();
    158159      std::string cmdstring(plotcmd + " '" + name + "' u 1:2 title '" +
    159                             linetitle_ + "' with " + linestyle_ + "\n");
     160                              linetitle_ + "' with " + linestyle_ + "\n");
     161      if (x.empty())
     162        cmdstring = plotcmd + " '" + name + "' u 1 title '" +
     163          linetitle_ + "' with " + linestyle_ + "\n";
     164       
    160165      command(cmdstring);
    161      
    162166      // need to keep track of created files since the gnuplot command
    163167      // is not executed until pclose on MacOSX, shouldn't the fflush
Note: See TracChangeset for help on using the changeset viewer.