[Rivet-svn] rivet: Small colormap improvement --- plot cells white if there ...

Rivet Mercurial rivet at projects.hepforge.org
Fri Jul 17 15:00:02 BST 2015


details:   https://rivet.hepforge.org/hg/rivet/rev/cb673b2addcf
branches:  
changeset: 4813:cb673b2addcf
user:      Holger Schulz <holger.schulz at durham.ac.uk>
date:      Fri Jul 17 14:51:33 2015 +0100
description:
Small colormap improvement --- plot cells white if there are no entries in it

diffs (14 lines):

--- a/bin/make-plots	Fri Jul 17 10:25:34 2015 +0100
+++ b/bin/make-plots	Fri Jul 17 14:51:33 2015 +0100
@@ -1600,7 +1600,10 @@
                     color=129
                 if self.data[i]['Content']<coors.zmin():
                     color=0
-                out += ('[linewidth=0pt, linestyle=none, fillstyle=solid, fillcolor={gradientcolors!!['+str(color)+']}]')
+                if self.data[i]['Content']<=coors.zmin():
+                    out += ('[linewidth=0pt, linestyle=none, fillstyle=solid, fillcolor=white]')
+                else:
+                    out += ('[linewidth=0pt, linestyle=none, fillstyle=solid, fillcolor={gradientcolors!!['+str(color)+']}]')
                 out += ('(' + coors.strphys2frameX(self.data[i]['LowEdge'][0]) + ', ' \
                             + coors.strphys2frameY(self.data[i]['LowEdge'][1]) + ')(' \
                             + coors.strphys2frameX(self.data[i]['UpEdge'][0])  + ', ' \


More information about the Rivet-svn mailing list