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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sun Feb 27 14:14:04 GMT 2011


Author: hoeth
Date: Sun Feb 27 14:14:04 2011
New Revision: 2983

Log:
make-plots: Introduce LineStyle=dashdotted abbreviation for LineStyle=dashed with LineDash=3pt 3pt .8pt 3pt

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

Modified: trunk/bin/make-plots
==============================================================================
--- trunk/bin/make-plots	Sun Feb 27 09:40:53 2011	(r2982)
+++ trunk/bin/make-plots	Sun Feb 27 14:14:04 2011	(r2983)
@@ -886,12 +886,17 @@
 
     def getLineStyle(self):
         if self.description.has_key('LineStyle'):
+            if self.description['LineStyle']=='dashdotted':
+                self.description['LineStyle']='dashed'
+                self.description['LineDash']='3pt 3pt .8pt 3pt'
             return self.description['LineStyle']
         else:
             return 'solid'
 
     def getLineDash(self):
         if self.description.has_key('LineDash'):
+            # Check if LineStyle=='dashdotted' before returning something
+            self.getLineStyle()
             return self.description['LineDash']
         else:
             return ''

Modified: trunk/doc/make-plots.txt
==============================================================================
--- trunk/doc/make-plots.txt	Sun Feb 27 09:40:53 2011	(r2982)
+++ trunk/doc/make-plots.txt	Sun Feb 27 14:14:04 2011	(r2983)
@@ -388,7 +388,9 @@
 --------------------
 If `LineStyle` is set to `dashed`, you can specify the dash style with this
 option. Anything that is understood by pstrick's `dash=...` option is valid.
-An example for a dash-dotted line is `LineDash=3pt 3pt .8pt 3pt`.
+An example for a dash-dotted line is `LineDash=3pt 3pt .8pt 3pt`. You can use
+`LineStyle=dashdotted` as an abbreviation for `LineStyle=dashed` with
+`LineDash=3pt 3pt .8pt 3pt`.
 
 --------------------
 ConnectGaps=<0|1>


More information about the Rivet-svn mailing list