summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tufte-latex/graphics/helix.asy
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/tufte-latex/graphics/helix.asy
Initial commit
Diffstat (limited to 'macros/latex/contrib/tufte-latex/graphics/helix.asy')
-rw-r--r--macros/latex/contrib/tufte-latex/graphics/helix.asy25
1 files changed, 25 insertions, 0 deletions
diff --git a/macros/latex/contrib/tufte-latex/graphics/helix.asy b/macros/latex/contrib/tufte-latex/graphics/helix.asy
new file mode 100644
index 0000000000..3d2ce8c9dc
--- /dev/null
+++ b/macros/latex/contrib/tufte-latex/graphics/helix.asy
@@ -0,0 +1,25 @@
+import graph3;
+
+size(0,200);
+
+usepackage("palatino");
+usepackage("mathpazo");
+
+currentprojection=orthographic(4,6,3);
+
+real x(real t) {return cos(2pi*t);}
+real y(real t) {return sin(2pi*t);}
+real z(real t) {return t;}
+
+defaultpen(overwrite(SuppressQuiet));
+
+path3 p=graph(x,y,z,0,2.7,operator ..);
+bbox3 b=autolimits(min(p),max(p));
+aspect(b,1,1,1);
+
+xaxis(rotate(X)*"$x$",all=true,b,red,RightTicks(rotate(X)*Label,2,2));
+yaxis(rotate(Y)*"$y$",all=true,b,red,RightTicks(rotate(Y)*Label,2,2));
+zaxis("$z$",all=true,b,red,RightTicks);
+
+draw(p,Arrow);
+