aboutsummaryrefslogtreecommitdiffstats
path: root/gnuplot.py
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-06-27 21:29:45 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-06-27 21:29:45 -0400
commit1c2e1bffd7fa66ad987d14c29e4b5842c035ae2d (patch)
tree9a02f656fb078a35af29c3328d5875789149cd1e /gnuplot.py
parent24e73890613bd905487847891379e0ecb32c7434 (diff)
parent68a8a52a44372869404ee0950ddb2c209b25a155 (diff)
Merge branch 'master' into wip-bbb
Conflicts: gnuplot.py
Diffstat (limited to 'gnuplot.py')
-rwxr-xr-xgnuplot.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnuplot.py b/gnuplot.py
index a304809..36ab73c 100755
--- a/gnuplot.py
+++ b/gnuplot.py
@@ -147,6 +147,7 @@ class Plot(object):
147 self.style = {} 147 self.style = {}
148 148
149 self.default_style = None # for plotted curves 149 self.default_style = None # for plotted curves
150 self.line_styles = []
150 151
151 def setup_histogram(self, gap=None, boxwidth=0.9): 152 def setup_histogram(self, gap=None, boxwidth=0.9):
152 self.style['data'] = 'histogram' 153 self.style['data'] = 'histogram'
@@ -232,6 +233,9 @@ class Plot(object):
232 for s in self.style: 233 for s in self.style:
233 g("set style %s %s" % (s, self.style[s])) 234 g("set style %s %s" % (s, self.style[s]))
234 235
236 for ls in self.line_styles:
237 g("set style line %d %s" % (ls[0], ls[1]))
238
235 plots = [c.gnuplot_cmd(self.default_style) for c in self.curves] 239 plots = [c.gnuplot_cmd(self.default_style) for c in self.curves]
236 if plots: 240 if plots:
237 g("plot " + ", ".join(plots)) 241 g("plot " + ", ".join(plots))