summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/HermiteSpline.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/HermiteSpline.asy')
-rw-r--r--Master/texmf/doc/asymptote/examples/HermiteSpline.asy14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/HermiteSpline.asy b/Master/texmf/doc/asymptote/examples/HermiteSpline.asy
new file mode 100644
index 00000000000..7f4cbbebb24
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/HermiteSpline.asy
@@ -0,0 +1,14 @@
+import graph;
+
+size(140mm,70mm,IgnoreAspect);
+scale(false);
+real[] x={1,3,4,5,6};
+real[] y={1,5,2,0,4};
+
+marker mark=marker(scale(1mm)*cross(6,false,r=0.35),red,Fill);
+
+draw(graph(x,y,Hermite),"Hermite Spline",mark);
+xaxis("$x$",Bottom,LeftTicks(x));
+yaxis("$y$",Left,LeftTicks);
+attach(legend(),point(NW),40S+30E,UnFill);
+