aboutsummaryrefslogtreecommitdiffstats
path: root/gnuplot.py
diff options
context:
space:
mode:
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))