- Timestamp:
- Apr 13, 2009, 11:32:47 PM (14 years ago)
- Location:
- branches/replacing_gnuplot/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/replacing_gnuplot/lib/File.cc
r784 r789 26 26 #include "Configuration.h" 27 27 #include "Date.h" 28 #include "G nuplotFE.h"28 #include "Graph.h" 29 29 #include "html_utility.h" 30 30 #include "HtmlStream.h" … … 246 246 int first=0; 247 247 bool using_dates=true; 248 if ( GnuplotFE::instance()->dates().empty()){248 if (!Graph::date_xticks()) { 249 249 using_dates=false; 250 250 last = stats_["classic"].revision(); 251 251 } 252 252 else { 253 last = Date(G nuplotFE::instance()->dates().back()).seconds();253 last = Date(Graph::xticks().back()).seconds(); 254 254 // earliest date corresponds either to revision 0 or revision 1 255 first = std::min(Date(G nuplotFE::instance()->dates()[0]).seconds(),256 Date(G nuplotFE::instance()->dates()[1]).seconds());255 first = std::min(Date(Graph::xticks()[0]).seconds(), 256 Date(Graph::xticks()[1]).seconds()); 257 257 } 258 258 // color is calculated linearly on time, c = kt + m -
branches/replacing_gnuplot/lib/Graph.h
r788 r789 23 23 */ 24 24 25 #include <string> 26 #include <vector> 27 25 28 namespace theplu { 26 29 namespace svndigest { … … 34 37 */ 35 38 Graph(void); 39 40 static bool date_xticks(void); 41 static const std::vector<std::string>& xticks(void); 36 42 }; 37 43
Note: See TracChangeset
for help on using the changeset viewer.