From 9c35a356c25ce5761925cdf0da621b0d9cb50e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20B=2E=20Brandenburg?= Date: Tue, 8 Jun 2010 21:40:18 -0400 Subject: Support plotting of RTSS'08 graphs. --- plot.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'plot.py') diff --git a/plot.py b/plot.py index b961c6d..23f8ee5 100755 --- a/plot.py +++ b/plot.py @@ -298,6 +298,51 @@ class SchedPlotter(defapp.App): else: p.gnuplot_exec() + + def plot_rtss08(self, tmpfile, name, conf): + p = self.make_plot(name) + + #### Data. + + titles = ['P-EDF', 'C-EDF', 'G-EDF', 'PFAIR', 'S-PFAIR', 'G-NP-EDF'] + if 'hard' in conf: + del titles[-1] + + p.curves += [curve(fname=tmpfile, xcol=1, ycol=(y + 2), title=t) + for (y, t) in enumerate(titles)] + + #### Styling. + + if not self.setup_png(p): + # eps or pdf + p.rounded_caps = True + p.font = 'Helvetica' + + p.font_size = '10' + p.size = ('20cm', '10cm') + p.monochrome = False + p.dashed_lines = False + p.key = 'below' + + p.xticks = (0, 1) + p.yrange = (-0.05, 1.05) + p.yticks = (0, 0.1) + p.xlabel = "ucap (prior to inflation)" + p.default_style = 'linespoints lw 5' + + p.ylabel = "schedulability " + (' [soft]' if 'soft' in conf else ' [hard]') + p.xrange = (0.5, 32.5) + + p.title = scenario_heading(conf, True) + if not self.options.paper: + p.title = "RTSS'08 " + p.title + + if self.options.save_script: + p.gnuplot_save(p.output + '.plot') + else: + p.gnuplot_exec() + + def plot_rtss09(self, tmpfile, name, conf): title = scenario_heading(conf, want_period=True) graphs = [ @@ -426,6 +471,8 @@ class SchedPlotter(defapp.App): self.plot_spec4(tmpfile.name, name, conf) elif 'irq' in conf: self.plot_irq(tmpfile.name, name, conf) + elif 'rtss08' in conf: + self.plot_rtss08(tmpfile.name, name, conf) elif 'rtss09' in conf: if self.options.split: self.plot_rtss09_split(tmpfile.name, name, conf) -- cgit v1.2.2