diff options
| -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: |
