From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- graphics/asymptote/doc/multicontour.asy | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 graphics/asymptote/doc/multicontour.asy (limited to 'graphics/asymptote/doc/multicontour.asy') diff --git a/graphics/asymptote/doc/multicontour.asy b/graphics/asymptote/doc/multicontour.asy new file mode 100644 index 0000000000..0e8476de92 --- /dev/null +++ b/graphics/asymptote/doc/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