diff options
| author | Christopher Kenna <cjk@cs.unc.edu> | 2011-05-04 22:20:15 -0400 |
|---|---|---|
| committer | Christopher Kenna <cjk@cs.unc.edu> | 2011-05-04 22:20:15 -0400 |
| commit | 0dc2b6a80e0b919687655cdb30c3da70feef13dc (patch) | |
| tree | 14c69dbac069be8c81cac6b5c9925635dfcc4616 | |
| parent | 68a8a52a44372869404ee0950ddb2c209b25a155 (diff) | |
xtics can be passed as a string to gnuplot unmodifiedwip-edf-hsb
| -rwxr-xr-x | gnuplot.py | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -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: |
