diff options
-rwxr-xr-x | gnuplot.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3,7 +3,7 @@ import defapp | |||
3 | from subprocess import Popen, PIPE | 3 | from subprocess import Popen, PIPE |
4 | from optparse import make_option as o | 4 | from optparse import make_option as o |
5 | 5 | ||
6 | FORMATS = ['png', 'eps', 'pdf', 'show'] | 6 | FORMATS = ['png', 'eps', 'pdf', 'show', 'ps'] |
7 | STYLES = ['points', 'lines', 'linespoints'] | 7 | STYLES = ['points', 'lines', 'linespoints'] |
8 | 8 | ||
9 | class CommandBuffer(object): | 9 | class CommandBuffer(object): |
@@ -32,6 +32,10 @@ def gnuplot_cmd(graphs, title=None, ylabel=None, xlabel=None, | |||
32 | terminal = 'postscript eps' | 32 | terminal = 'postscript eps' |
33 | if term_opts is None: | 33 | if term_opts is None: |
34 | term_opts = 'color blacktext solid linewidth 1.0' | 34 | term_opts = 'color blacktext solid linewidth 1.0' |
35 | elif format == 'ps': | ||
36 | terminal = 'postscript' | ||
37 | if term_opts is None: | ||
38 | term_opts = 'color enhanced' | ||
35 | elif format == 'pdf': | 39 | elif format == 'pdf': |
36 | terminal = 'pdf' | 40 | terminal = 'pdf' |
37 | if term_opts is None: | 41 | if term_opts is None: |