From 0dc2b6a80e0b919687655cdb30c3da70feef13dc Mon Sep 17 00:00:00 2001 From: Christopher Kenna Date: Wed, 4 May 2011 22:20:15 -0400 Subject: xtics can be passed as a string to gnuplot unmodified --- gnuplot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gnuplot.py') diff --git a/gnuplot.py b/gnuplot.py index ca1e2ff..807675e 100755 --- a/gnuplot.py +++ b/gnuplot.py @@ -265,7 +265,10 @@ def gnuplot_cmd(graphs, title=None, ylabel=None, xlabel=None, if yrange: g("set yrange [%s:%s]" % yrange) if xticks: - g("set xtics %s, %s" % xticks) + if isinstance(xticks, str): + g('set xtics {0}'.format(xticks)) + else: + g("set xtics %s, %s" % xticks) if yticks: g("set ytics %s, %s" % yticks) if logscale: -- cgit v1.2.2