Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
Execute a gnuplot script.

        def gnuplot(script_path):
    """Execute a gnuplot script."""
    path = os.path.dirname(os.path.abspath(script_path))
    if sys.platform.lower().startswith('win'):
        # commands module doesn't work on win and gnuplot is named
        # wgnuplot
        ret = os.system('cd "%s" && wgnuplot "%s"' %
                        path, script_path)
        if ret != 0:
            raise RuntimeError("Failed to run wgnuplot cmd on " +
                               script_path)

    else:
        cmd = 'cd %s && gnuplot %s' % (path, os.path.abspath(script_path))
        ret, output = getstatusoutput(cmd)
        if ret != 0:
            print "ERROR on " + cmd
        


src/b/e/benchbase-1.1.0/benchbase/report.py   benchbase(Download)
from bencher import Bencher
from sar import Sar
from util import str2id, render_template, gnuplot, generate_html
 
 
            f.write(script)
            f.close()
            gnuplot(script_path)
 
        sar = Sar(self.db, self.options)
            f.write(script)
            f.close()
            gnuplot(script_path)
 
        report = render_template('report.mako', **info)

src/b/e/benchbase-HEAD/benchbase/report.py   benchbase(Download)
from bencher import Bencher
from sar import Sar
from util import str2id, render_template, gnuplot, generate_html
 
 
            f.write(script)
            f.close()
            gnuplot(script_path)
 
        sar = Sar(self.db, self.options)
            f.write(script)
            f.close()
            gnuplot(script_path)
 
        report = render_template('report.mako', **info)