|
[Rivet-svn] rivet: Give useful error if axis limits are messed upRivet Mercurial rivet at projects.hepforge.orgFri Jun 23 08:45:02 BST 2017
details: https://rivet.hepforge.org/hg/rivet/rev/50aab881efcd branches: release-2-5-x changeset: 5882:50aab881efcd user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Fri Jun 23 09:38:17 2017 +0200 description: Give useful error if axis limits are messed up diffs (11 lines): --- a/bin/make-plots Sun Jun 18 19:38:37 2017 +0100 +++ b/bin/make-plots Fri Jun 23 09:38:17 2017 +0200 @@ -2130,6 +2130,8 @@ self.coors = coors def draw_ticks(self, vmin, vmax, plotlog=False, custommajorticks=None, customminorticks=None, custommajortickmarks=-1, customminortickmarks=-1, drawlabels=True, twosided=False): + if vmax <= vmin: + raise Exception("Cannot place tick marks. Inconsistent min=%s and max=%s" % (vmin,vmax)) out = "" if plotlog: if vmin <= 0 or vmax <= 0:
More information about the Rivet-svn mailing list |