From: W. Trevor King Date: Thu, 12 Apr 2012 01:04:46 +0000 (-0400) Subject: Make the Python limo script executable. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed3656403a9befab65e394949f3862657659f41d;p=course.git Make the Python limo script executable. Also adjust the name of the expected file to ${SCRIPT/.py/} to make it easier to automatically generate the required image. --- diff --git a/latex/problems/wking/problem.relativistic-limo.limo.py b/latex/problems/wking/problem.relativistic-limo.limo.py old mode 100644 new mode 100755 index 6615372..0379870 --- a/latex/problems/wking/problem.relativistic-limo.limo.py +++ b/latex/problems/wking/problem.relativistic-limo.limo.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + from pylab import * from matplotlib.patches import Polygon import sys @@ -5,7 +7,6 @@ import sys filename = None if len(sys.argv) >= 2: filename = sys.argv[1] - figure(facecolor='w', figsize=[4,3]) border = 0.15 diff --git a/latex/problems/wking/problem.relativistic-limo.tex b/latex/problems/wking/problem.relativistic-limo.tex index cef7a3d..c080080 100644 --- a/latex/problems/wking/problem.relativistic-limo.tex +++ b/latex/problems/wking/problem.relativistic-limo.tex @@ -47,7 +47,7 @@ the limo is back at event $C$, while the door of the garage is up at event $D$. Note that the garage is less than $1\U{ls}$ deep in the limo frame. \begin{center} -\includegraphics[height=2in]{limo} +\includegraphics[height=2in]{problem.relativistic-limo.limo} \end{center} ``Entirely in the garage'' is something of a trick question, since it means ``all of the limo is in the garage at same time'' and ``at the