From 36b6614fa9ea3c2656aedb385c5c4154917aa618 Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Fri, 9 Apr 2010 00:01:41 -0400 Subject: Add support for postscript terminal (debian doesn't have pdf :( ) --- gnuplot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnuplot.py') diff --git a/gnuplot.py b/gnuplot.py index 0afb9b3..4a34d1f 100755 --- a/gnuplot.py +++ b/gnuplot.py @@ -3,7 +3,7 @@ import defapp from subprocess import Popen, PIPE from optparse import make_option as o -FORMATS = ['png', 'eps', 'pdf', 'show'] +FORMATS = ['png', 'eps', 'pdf', 'show', 'ps'] STYLES = ['points', 'lines', 'linespoints'] class CommandBuffer(object): @@ -32,6 +32,10 @@ def gnuplot_cmd(graphs, title=None, ylabel=None, xlabel=None, terminal = 'postscript eps' if term_opts is None: term_opts = 'color blacktext solid linewidth 1.0' + elif format == 'ps': + terminal = 'postscript' + if term_opts is None: + term_opts = 'color enhanced' elif format == 'pdf': terminal = 'pdf' if term_opts is None: -- cgit v1.2.2