aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2011-05-04 22:20:15 -0400
committerChristopher Kenna <cjk@cs.unc.edu>2011-05-04 22:20:15 -0400
commit0dc2b6a80e0b919687655cdb30c3da70feef13dc (patch)
tree14c69dbac069be8c81cac6b5c9925635dfcc4616
parent68a8a52a44372869404ee0950ddb2c209b25a155 (diff)
xtics can be passed as a string to gnuplot unmodifiedwip-edf-hsb
-rwxr-xr-xgnuplot.py5
1 files changed, 4 insertions, 1 deletions
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,
265 if yrange: 265 if yrange:
266 g("set yrange [%s:%s]" % yrange) 266 g("set yrange [%s:%s]" % yrange)
267 if xticks: 267 if xticks:
268 g("set xtics %s, %s" % xticks) 268 if isinstance(xticks, str):
269 g('set xtics {0}'.format(xticks))
270 else:
271 g("set xtics %s, %s" % xticks)
269 if yticks: 272 if yticks:
270 g("set ytics %s, %s" % yticks) 273 g("set ytics %s, %s" % yticks)
271 if logscale: 274 if logscale: