[Rivet-svn] r3163 - in trunk: bin doc

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Jun 24 10:08:31 BST 2011


Author: buckley
Date: Fri Jun 24 10:08:30 2011
New Revision: 3163

Log:
Adding a humane 'dotdashed' synonym for 'dashdotted', for those whose brains work the other way around ;) And documenting it.

Modified:
   trunk/bin/make-plots
   trunk/doc/make-plots.txt

Modified: trunk/bin/make-plots
==============================================================================
--- trunk/bin/make-plots	Thu Jun 23 14:02:03 2011	(r3162)
+++ trunk/bin/make-plots	Fri Jun 24 10:08:30 2011	(r3163)
@@ -992,7 +992,9 @@
 
     def getLineStyle(self):
         if self.description.has_key('LineStyle'):
-            if self.description['LineStyle']=='dashdotted':
+            ## I normally like there to be "only one way to do it", but providing
+            ## this dashdotted/dotdashed synonym just seems humane ;-)
+            if self.description['LineStyle'] in ('dashdotted', 'dotdashed'):
                 self.description['LineStyle']='dashed'
                 self.description['LineDash']='3pt 3pt .8pt 3pt'
             return self.description['LineStyle']

Modified: trunk/doc/make-plots.txt
==============================================================================
--- trunk/doc/make-plots.txt	Thu Jun 23 14:02:03 2011	(r3162)
+++ trunk/doc/make-plots.txt	Fri Jun 24 10:08:30 2011	(r3163)
@@ -404,7 +404,8 @@
 LineStyle=<style>
 --------------------
 Any linestyle that is understood by the LaTeX pstricks package, e.g. `solid`,
-`dotted`, `dashed`, `none`.
+`dotted`, `dashed`, `none`, as well as a special `dashdotted` (or `dotdashed`)
+linestyle which does what you might expect.
 
 --------------------
 LineColor=<color>


More information about the Rivet-svn mailing list