Changeset 860 for trunk/lib


Ignore:
Timestamp:
Nov 20, 2009, 12:36:42 AM (12 years ago)
Author:
Jari Häkkinen
Message:

Now the summary plot is visible in index.html

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.cc

    r859 r860  
    3030  {
    3131    pls_.sdev("svg");
    32     pls_.sfnam((filename+".svg").c_str());
     32    pls_.sfnam(filename.c_str());
    3333    pls_.init();
    3434    pls_.adv(0);
  • trunk/lib/first_page.cc

    r858 r860  
    226226  void print_summary_plot(std::ostream& os, const Stats& stats)
    227227  {
    228     std::string name("summary_plot");
     228    std::string name("summary_plot.svg");
    229229    stats.plot_summary(name);
    230230    os << "<div class=\"main\">\n";
    231     os << "<img src='" << name << "' alt='[plot]'/>";
     231    os << "<object data='" << name << "' type='image/svg+xml' width='600'\n"
     232       << "<embed src='" << name << "' type='image/svg+xml' width='600' />\n"
     233       << "</object>\n";
    232234    os << "</div>";
     235
     236
    233237  }
    234238
Note: See TracChangeset for help on using the changeset viewer.