Permalink
Browse files

• Added simple gnuplot template

  • Loading branch information...
1 parent a9378ba commit a3523a684321dc80d57bfe8751a58ab2d8001b63 @mattfoster committed Jun 10, 2008
Showing with 32 additions and 0 deletions.
  1. +19 −0 Templates/Gnuplot Script.tmTemplate/info.plist
  2. +13 −0 Templates/Gnuplot Script.tmTemplate/untitled.gp
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>command</key>
+ <string>if [[ ! -f "$TM_NEW_FILE" ]]; then
+ TM_YEAR=`date +%Y` \
+ TM_DATE=`date +%Y-%m-%d` \
+ perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
+ &lt; untitled.gp &gt; "$TM_NEW_FILE"
+fi</string>
+ <key>extension</key>
+ <string>gp</string>
+ <key>name</key>
+ <string>Gnuplot Script</string>
+ <key>uuid</key>
+ <string>B3A7D3D6-6B30-4C27-A8BB-197213E18A6A</string>
+</dict>
+</plist>
@@ -0,0 +1,13 @@
+#
+# ${TM_NEW_FILE_BASENAME}
+#
+# Created by ${TM_FULLNAME} on ${TM_DATE}.
+# Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.
+#
+
+set terminal pdf
+set output "output.pdf"
+
+set title
+set xlabel
+set ylabel

0 comments on commit a3523a6

Please sign in to comment.