|
[Rivet-svn] rivet: enable smooth curves in make-pgfplotsRivet Mercurial rivet at projects.hepforge.orgFri Jun 15 01:00:02 BST 2018
details: https://rivet.hepforge.org/hg/rivet/rev/e4e477c3e2e4 branches: release-2-6-x changeset: 6331:e4e477c3e2e4 user: Christian Gutschow <chris.g at cern.ch> date: Fri Jun 15 00:52:52 2018 +0100 description: enable smooth curves in make-pgfplots diffs (28 lines): --- a/bin/make-pgfplots Fri Jun 15 00:23:38 2018 +0100 +++ b/bin/make-pgfplots Fri Jun 15 00:52:52 2018 +0100 @@ -1678,6 +1678,8 @@ setup += ('mark=%s,\n' % self.getMarkerStyle()) if self.getLineDash(): setup += ('dash pattern=%s,\n' % self.getLineDash()) + if self.getSmoothLine(): + setup += ('smooth,\n') #if not legendName: # setup += ('forget plot,\n') if self.getMarkerStyle() != 'none': @@ -2262,6 +2264,7 @@ # out += '\\psline' points = '' if self.getErrorBars(): + self.props['SmoothLine'] = 0 points += ('x y ex- ex+ ey- ey+\n') for b in self.data: if isnan(b.val): @@ -2276,6 +2279,8 @@ points += ('%s %s ' % (b.xmid, b.val)) points += ('%s %s ' % (b.xmid - b.xmin, b.xmax - b.xmid)) points += ('%s %s' % (b.err[0], b.err[1])) + elif self.getSmoothLine(): + points += ('(%s,%s)' % (b.xmid, b.val)) else: points += ('(%s,%s) (%s,%s)' % (b.xmin, b.val, b.xmax, b.val)) points += ('\n')
More information about the Rivet-svn mailing list |