diff options
author | Björn B. Brandenburg <bbb@cs.unc.edu> | 2010-06-08 17:13:18 -0400 |
---|---|---|
committer | Björn B. Brandenburg <bbb@cs.unc.edu> | 2010-06-08 17:13:18 -0400 |
commit | 8cae15168721733dc7f052a1a704752b8568c9d4 (patch) | |
tree | dc5ce5fffb8aa56024aa2b15b316c73582ef0209 /gnuplot.py | |
parent | 18b4566ab4a9e67947b80be07598e09bd2532546 (diff) |
Allow titles with single ' in them
(Such as RTSS'09)
Diffstat (limited to 'gnuplot.py')
-rwxr-xr-x | gnuplot.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||