From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- .../latex/contrib/tufte-latex/graphics/helix.asy | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 macros/latex/contrib/tufte-latex/graphics/helix.asy (limited to 'macros/latex/contrib/tufte-latex/graphics/helix.asy') 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); + -- cgit v1.2.3