Add web page link, y-scalefactor in TeX comment, and default format indicator in help output pyslha-1.0.2

Thu, 30 Dec 2010 18:25:41 +0000

author
Andy Buckley <andy@insectnation.org>
date
Thu, 30 Dec 2010 18:25:41 +0000
changeset 101
3a7032d517e3
parent 100
b7d95d1269b8
child 102
503f1a09ed79

Add web page link, y-scalefactor in TeX comment, and default format indicator in help output

pyslha.py file | annotate | diff | comparison | revisions
setup.py file | annotate | diff | comparison | revisions
slhaplot file | annotate | diff | comparison | revisions
     1.1 --- a/pyslha.py	Tue Nov 30 20:19:45 2010 +0000
     1.2 +++ b/pyslha.py	Thu Dec 30 18:25:41 2010 +0000
     1.3 @@ -23,7 +23,7 @@
     1.4  """
     1.5  
     1.6  __author__ = "Andy Buckley <andy.buckley@cern.ch"
     1.7 -__version__ = "1.0.1"
     1.8 +__version__ = "1.0.2"
     1.9  
    1.10  
    1.11  def _autotype(var):
     2.1 --- a/setup.py	Tue Nov 30 20:19:45 2010 +0000
     2.2 +++ b/setup.py	Thu Dec 30 18:25:41 2010 +0000
     2.3 @@ -15,7 +15,7 @@
     2.4        scripts = ["slhaplot", "slha2isawig", "isawig2slha"],
     2.5        author = 'Andy Buckley',
     2.6        author_email = 'andy@insectnation.org',
     2.7 -      #url = 'http://projects.hepforge.org/pyslha/',
     2.8 +      url = 'http://www.hepforge.org/projects/pyslha',
     2.9        description = 'Parsing, manipulating, and visualising SUSY Les Houches Accord data',
    2.10        long_description = __doc__,
    2.11        keywords = 'supersymmetry susy slha simulation mass decay hep physics particle',
     3.1 --- a/slhaplot	Tue Nov 30 20:19:45 2010 +0000
     3.2 +++ b/slhaplot	Thu Dec 30 18:25:41 2010 +0000
     3.3 @@ -14,8 +14,9 @@
     3.4  images.
     3.5  
     3.6  TODOs:
     3.7 -  * Allow user control over aspect ratio
     3.8 +  * Allow user control over aspect ratio / geometry
     3.9    * Use proper distinction between physical, plot-logical, and plot output coords
    3.10 +  * Use scaling to allow the y coordinates to be in units of 100 GeV in TikZ output.
    3.11    * Drop make-plots support?
    3.12  """
    3.13  
    3.14 @@ -40,7 +41,7 @@
    3.15          return self.text
    3.16  
    3.17  
    3.18 -## *Details classes for representing decided positions in a way independent of output format
    3.19 +## Details classes for representing decided positions in a way independent of output format
    3.20  
    3.21  
    3.22  class ParticleDetails(object):
    3.23 @@ -119,7 +120,8 @@
    3.24                    "with the LaTeX preamble and document lines commented out to make it directly "
    3.25                    "includeable as a code fragment in LaTeX document source, 'tikzpdf' produces a "
    3.26                    "PDF file created by running pdflatex and pdfcrop on the 'tikz' output, and "
    3.27 -                  "'makeplots' produces a .dat file for processing with the make-plots command.",
    3.28 +                  "'makeplots' produces a .dat file for processing with the make-plots command. "
    3.29 +                  "(default: %default)",
    3.30                    dest="FORMAT", default="tikzpdf")
    3.31  parser.add_option("--preamble", metavar="FILE",
    3.32                    help="specify a file to be inserted into LaTeX output as a special preamble",
    3.33 @@ -431,6 +433,8 @@
    3.34      out += "\\centering\n"
    3.35      out += "\\begin{tikzpicture}[scale=0.6]\n"
    3.36  
    3.37 +    out += "  %% y-scalefactor (GeV -> coords) = %e\n\n" % yscale
    3.38 +
    3.39      ## Draw the plot boundary and y-ticks
    3.40      out += "  %% Frame\n"
    3.41      out += "  \\draw (%f,%f) rectangle (%f,%f);\n" % (scalex(xmin), ymin, scalex(xmax), ymax)

mercurial