diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-06-27 21:29:45 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-06-27 21:29:45 -0400 |
commit | 1c2e1bffd7fa66ad987d14c29e4b5842c035ae2d (patch) | |
tree | 9a02f656fb078a35af29c3328d5875789149cd1e /gnuplot.py | |
parent | 24e73890613bd905487847891379e0ecb32c7434 (diff) | |
parent | 68a8a52a44372869404ee0950ddb2c209b25a155 (diff) |
Merge branch 'master' into wip-bbb
Conflicts:
gnuplot.py
Diffstat (limited to 'gnuplot.py')
-rwxr-xr-x | gnuplot.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)) |