aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn B. Brandenburg <bbb@cs.unc.edu>2010-06-08 17:13:18 -0400
committerBjörn B. Brandenburg <bbb@cs.unc.edu>2010-06-08 17:13:18 -0400
commit8cae15168721733dc7f052a1a704752b8568c9d4 (patch)
treedc5ce5fffb8aa56024aa2b15b316c73582ef0209
parent18b4566ab4a9e67947b80be07598e09bd2532546 (diff)
Allow titles with single ' in them
(Such as RTSS'09)
-rwxr-xr-xgnuplot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuplot.py b/gnuplot.py
index 955617e..aaff8f1 100755
--- a/gnuplot.py
+++ b/gnuplot.py
@@ -60,7 +60,7 @@ class FileGraph(object):
60 using_txt = "%s:%s" % (self.xcol, self.ycol) 60 using_txt = "%s:%s" % (self.xcol, self.ycol)
61 style = self.style if self.style else default_style 61 style = self.style if self.style else default_style
62 style_txt = " with %s" % style if style else "" 62 style_txt = " with %s" % style if style else ""
63 title_txt = " title '%s'" % self.title if self.title else "" 63 title_txt = ' title "%s"' % self.title if self.title else ""
64 return "'%s' using %s%s%s" % \ 64 return "'%s' using %s%s%s" % \
65 (self.fname, using_txt, title_txt, style_txt) 65 (self.fname, using_txt, title_txt, style_txt)
66 66
@@ -202,7 +202,7 @@ class Plot(object):
202 g("set label " + l.gnuplot_cmd()) 202 g("set label " + l.gnuplot_cmd())
203 203
204 if isset(self.output): 204 if isset(self.output):
205 g("set out '%s'" % self.output) 205 g('set out "%s"' % self.output)
206 206
207 g("replot") 207 g("replot")
208 208