From 8cae15168721733dc7f052a1a704752b8568c9d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20B=2E=20Brandenburg?= Date: Tue, 8 Jun 2010 17:13:18 -0400 Subject: Allow titles with single ' in them (Such as RTSS'09) --- gnuplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnuplot.py') 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): using_txt = "%s:%s" % (self.xcol, self.ycol) style = self.style if self.style else default_style style_txt = " with %s" % style if style else "" - title_txt = " title '%s'" % self.title if self.title else "" + title_txt = ' title "%s"' % self.title if self.title else "" return "'%s' using %s%s%s" % \ (self.fname, using_txt, title_txt, style_txt) @@ -202,7 +202,7 @@ class Plot(object): g("set label " + l.gnuplot_cmd()) if isset(self.output): - g("set out '%s'" % self.output) + g('set out "%s"' % self.output) g("replot") -- cgit v1.2.2