~ubuntu-branches/ubuntu/wily/dolfin/wily-proposed

« back to all changes in this revision

Viewing changes to bench/plot.py

  • Committer: Package Import Robot
  • Author(s): Johannes Ring
  • Date: 2015-03-17 07:57:11 UTC
  • mfrom: (1.1.18) (19.1.24 experimental)
  • Revision ID: package-import@ubuntu.com-20150317075711-1v207zbty9qmygow
Tags: 1.5.0-1
* New upstream release (closes: #780359).
* debian/control:
  - Bump Standards-Version to 3.9.6 (no changes needed).
  - Bump X-Python-Version to >= 2.7.
  - Update package names for new SONAME 1.5 (libdolfin1.4 ->
    libdolfin1.5, libdolfin1.4-dbg -> libdolfin1.5-dbg and
    libdolfin1.4-dev -> libdolfin1.5-dev).
  - Bump minimum required version for python-instant, python-ufl and
    python-ffc to 1.5.0.
  - Add python-sympy and python-six to Depends for binary package
    python-dolfin.
  - Add dh-python to Build-Depends.
  - Remove libcgal-dev from {Build-}Depends.
* Remove CSGCGALMeshGenerator3D-oom.patch since CGAL is no longer used
  by DOLFIN.
* Move debian/libdolfin1.4.install -> debian/libdolfin1.5.install.
* debian/rules: No longer any non DFSG-free stuff to remove, so update
  get-orig-source target (update debian/watch accordingly).
* Update debian/copyright and debian/copyright_hints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
# First added:  2010-04-06
27
27
# Last changed: 2010-04-13
28
28
 
 
29
from __future__ import print_function
29
30
import os
30
31
import re
31
32
import time
59
60
pattern = "\((.*)\)\s+(.*)\s+(.*)\s+\"(.*)\""
60
61
 
61
62
# Extract data from logfile
62
 
print "Parsing %s..." % benchlog
 
63
print("Parsing %s..." % benchlog)
63
64
for line in lines:
64
65
    match = re.search(pattern, line)
65
66
    if match:
125
126
 
126
127
# Create normalized plots with all benchmarks in same plot for
127
128
# last week, last month, last year, and last five years
128
 
print "Generating plots for all benchmarks..."
 
129
print("Generating plots for all benchmarks...")
129
130
for last, locator, date_fmt, xmin in zip(lasts, locators, date_fmts, xmins):
130
131
    fig = plt.figure()
131
132
    ax = fig.gca()
177
178
 
178
179
# Now create separate plots for every benchmark
179
180
for benchmark, values in benchmarks.items():
180
 
    print "Generating plots for %s..." % benchmark
 
181
    print("Generating plots for %s..." % benchmark)
181
182
 
182
183
    outfile.write("<h2>%s</h2><p>\n" % benchmark)
183
184
    outfile.write("<center>\n")