From b04c2e1a42573e9735547702356c7b9a769a6855 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 7 Apr 2013 18:26:53 +0000 Subject: texmf -> texmf-dist: doc git-svn-id: svn://tug.org/texlive/trunk@29714 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/asymptote/examples/multicontour.asy | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Master/texmf-dist/doc/asymptote/examples/multicontour.asy (limited to 'Master/texmf-dist/doc/asymptote/examples/multicontour.asy') diff --git a/Master/texmf-dist/doc/asymptote/examples/multicontour.asy b/Master/texmf-dist/doc/asymptote/examples/multicontour.asy new file mode 100644 index 00000000000..0e8476de922 --- /dev/null +++ b/Master/texmf-dist/doc/asymptote/examples/multicontour.asy @@ -0,0 +1,19 @@ +import contour; + +size(200); + +real f(real x, real y) {return x^2-y^2;} +int n=10; +real[] c=new real[n]; +for(int i=0; i < n; ++i) c[i]=(i-n/2)/n; + +pen[] p=sequence(new pen(int i) { + return (c[i] >= 0 ? solid : dashed)+fontsize(6pt); + },c.length); + +Label[] Labels=sequence(new Label(int i) { + return Label(c[i] != 0 ? (string) c[i] : "",Relative(unitrand()),(0,0), + UnFill(1bp)); + },c.length); + +draw(Labels,contour(f,(-1,-1),(1,1),c),p); -- cgit v1.2.3