Changeset 858 for trunk/lib/File.cc


Ignore:
Timestamp:
Nov 19, 2009, 8:45:31 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Addresses #97. Merging non-gnuplot plot generation code. Gnuplot traces left and lot of work before publication quality plots are generated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r847 r858  
    22
    33/*
    4   Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
    5   Copyright (C) 2009 Peter Johansson
     4  Copyright (C) 2005, 2006, 2007, 2008, 2009 Jari Häkkinen, Peter Johansson
    65
    76  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    2625#include "Configuration.h"
    2726#include "Date.h"
    28 #include "GnuplotFE.h"
     27#include "Graph.h"
    2928#include "html_utility.h"
    3029#include "HtmlStream.h"
     
    258257    int first=0;
    259258    bool using_dates=true;
    260     if (GnuplotFE::instance()->dates().empty()){
     259    if (!Graph::date_xticks()) {
    261260      using_dates=false;
    262261      last = stats_["classic"].revision();
    263262    }
    264263    else {
    265       last = Date(GnuplotFE::instance()->dates().back()).seconds();
     264      last = Date(Graph::xticks().back()).seconds();
    266265      // earliest date corresponds either to revision 0 or revision 1
    267       first = std::min(Date(GnuplotFE::instance()->dates()[0]).seconds(),
    268                        Date(GnuplotFE::instance()->dates()[1]).seconds());
     266      first = std::min(Date(Graph::xticks()[0]).seconds(),
     267                       Date(Graph::xticks()[1]).seconds());
    269268    }
    270269    // color is calculated linearly on time, c = kt + m
Note: See TracChangeset for help on using the changeset viewer.