summaryrefslogtreecommitdiff
path: root/36114-t/images/sources/040.xp
diff options
context:
space:
mode:
Diffstat (limited to '36114-t/images/sources/040.xp')
-rw-r--r--36114-t/images/sources/040.xp33
1 files changed, 33 insertions, 0 deletions
diff --git a/36114-t/images/sources/040.xp b/36114-t/images/sources/040.xp
new file mode 100644
index 0000000..4c2f9c9
--- /dev/null
+++ b/36114-t/images/sources/040.xp
@@ -0,0 +1,33 @@
+/* -*-ePiX-*- */
+#include "epix.h"
+using namespace ePiX;
+
+double dx(0.5), rad(0.125);
+
+void veloc(const P& loc, const P& off,
+ const std::string& msg, epix_label_posn A)
+{
+ arrow(loc, loc + P(dx,0));
+ label(loc + 0.5*dx, off, msg, A);
+}
+
+int main()
+{
+ picture(P(0,-rad), P(3,rad), "3 x 0.3in");
+
+ begin();
+ bold();
+ arrow_inset(0.5);
+ arrow_ratio(2);
+ arrow_width(2);
+
+ line(P(xmin(), -rad), P(xmax(), -rad));
+ line(P(xmin(), rad), P(xmax(), rad));
+
+ veloc(P(dx, 0), P(0,2), "$v$", t);
+
+ label(P(0.5*xmax(), ymax()), P(0,2), "$T$", t);
+
+ tikz_format();
+ end();
+}