summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/generalaxis.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/generalaxis.asy')
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/generalaxis.asy11
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/generalaxis.asy b/Master/texmf-dist/doc/asymptote/examples/generalaxis.asy
new file mode 100644
index 00000000000..dfe1000838e
--- /dev/null
+++ b/Master/texmf-dist/doc/asymptote/examples/generalaxis.asy
@@ -0,0 +1,11 @@
+import graph;
+size(0,100);
+
+path g=ellipse((0,0),1,2);
+
+scale(true);
+
+axis(Label("C",align=10W),g,LeftTicks(endlabel=false,8,end=false),
+ ticklocate(0,360,new real(real v) {
+ path h=(0,0)--max(abs(max(g)),abs(min(g)))*dir(v);
+ return intersect(g,h)[0];}));