Changeset 1007 for trunk/lib/Stats.cc


Ignore:
Timestamp:
Jan 3, 2010, 7:09:43 PM (13 years ago)
Author:
Peter Johansson
Message:

refs #405

Support for png images, which is now default. Using alhpa channel in
plstream for png did not work well in any straghtforward way so made
PNGs opaque.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r1004 r1007  
    2525
    2626#include "Colors.h"
     27#include "Configuration.h"
    2728#include "Functor.h"
    2829#include "Graph.h"
     
    364365  {
    365366    assert(total_stats().size());
    366     Graph gp(filename);
     367    Graph gp(filename+"."+Configuration::instance().image_format(),
     368             Configuration::instance().image_format());
    367369    const Author2Vector* stat=NULL;
    368370    if (linetype=="total")
     
    431433  void Stats::plot_summary(const std::string& filename) const
    432434  {
    433     Graph gp(filename);
     435    Graph gp(filename+"."+Configuration::instance().image_format(),
     436             Configuration::instance().image_format());
    434437    std::vector<unsigned int> total = get_vector(total_stats(), "all");
    435438    double yrange_max=1.03*total.back()+1;
Note: See TracChangeset for help on using the changeset viewer.