Asymptote is a TeX-aware vector graphics language with built-in 3D capabilities. This tag, which is compatible with [tag:diagrams], may be used for questions about drawing diagrams. It is also appropriate for questions about the asymptote package, which allows Asymptote code to be included directly ...

learn more… | top users | synonyms

5
votes
1answer
32 views

Draw multiple curves at a constant distance from one another in asymptote

In asymptote, I would like to draw arbitrary paths as in the following image, but with multiple colors. In the example, the path shown in black is also drawn with two parallel red lines. I would ...
3
votes
0answers
18 views

Old asymptote code in LaTeX document does not work after asymptote upgrad

I have a LaTeX-document with embedded Asymptote code that works fine. That is, in Asymptote 2.15. When I upgraded to 2.32 and rerun, the program gets stuck on working on one of the graphs. Stuck, no ...
5
votes
2answers
65 views

How to draw a line between two circles?

I want to create a graph using Asymptote and this graph consists of quite some circles with lines between them. Let me give a small example using two circles. pair a1=(4.5,2); pair a2=(0,0); real ...
3
votes
1answer
77 views

“If” statement inside of Asymptote function

I want to plot the function f(x,y)=cos(y)sin(x)/x even when x=0 (the function is continuous at such points). I can create a function in Asymptote that plots this surface with triple f(pair t) {return ...
2
votes
0answers
40 views

Asymptote in LaTeX - a peculiar problem

I wonder if someone can explain what follows to me and how to remedy it. The following piece of Asymptote code: import graph; import graph3; currentprojection=perspective(4,5,5); real f(pair z) ...
3
votes
1answer
55 views

How to draw cloud shape in Asymptote

I saw that TikZ can draw cloud shapes, even asymmetric ones: Asymmetric cloud shape in TikZ. But as I am not familiar with TikZ and prefer Asymptote's C++ like syntax, I would like to know how to ...
1
vote
0answers
29 views

tikzexternal, asymptote and duplicated asy files

I'm trying to work with tikzexternal and asymptote for my documents. Here is a sample TeX document : \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
6
votes
2answers
88 views

Asymptote 3D label background

I'd like to create a 3D label in Asymptote that has a "background," effectively giving the label the look as though it were printed on poster board. I don't care if this background conforms to the ...
3
votes
0answers
44 views

Specify interactive rendering mode for asymptotes RPC/PDF export

I started using asymptote for some 3D graphics lately which works quite nice. For example I have a set of points on the sphere (where i put just e few of them into this example file) like import ...
3
votes
1answer
36 views

Problem getting 3D Asymptote to Work on Mac

I've been trying to get asymptote to work on my MacBook Pro running Yosemite. I downloaded asymptote onto the desktop and I tried to install it. I now have a "usr" folder on my desktop (is there a ...
4
votes
1answer
66 views

Asymptote: prevent label scaling in 3d perspective

Is there a simple way to prevent labels from scaling based on their distance to the camera in a perspective 3d view? (For example, see the first comment on this question or page 65 of this tutorial.) ...
1
vote
2answers
40 views

Asymptote working on Sharelatex but not on my local pdflatex

I have a document.tex file: \documentclass{article} \usepackage{asymptote} \begin{document} \begin{figure} \centering \asyinclude{test.asy} \caption{A test with \textsf{asymptote}} ...
5
votes
2answers
62 views

What does “emissive” in Asymptote do?

When drawing a 3D object in Asymptote, one can define the color with constructions like rgb(.4,.4,1) or rgb(1,0,1)+opacity(.5), which have fairly obvious meanings. One can also wrap these color ...
0
votes
0answers
40 views

How to run Asymptote inline for TeXstudio?

I try to run latexusage.tex as can be found on sourceforge.net using TeXstudio for Windows 7. I have downloaded Asymptote and put asymptote.sty in the folder I saved latexusage.tex in. However, when I ...
3
votes
1answer
65 views

texpath command returns empty array in Asymptote

when using the texpath command in Asymptote, I only get an empty path array. I'm using a miktex installation on a Windows 8 machine, ghostscript is installed. (I also have a TeX Live installation on a ...
5
votes
2answers
98 views

Asymptote fill area between two contours

I use Asymptote to make the graphics. I have two curves defined as contours C_1 and C_2. I want to fill the area between the two curves. The problem is that contour returns a guide structure in ...
0
votes
0answers
89 views

Building with asymptote: file-2.tex not found, null surface

I keep getting these weird errors when trying to compile with Asymptote. I compile with pdflatex, then asymptote, then pdflatex. The error is as stated in the title. For example, when building ...
10
votes
2answers
199 views

Stereographic projection of a circle to a plane in Asymptote

I would like to produce an Asymptote version of the scene portrayed here: https://www.youtube.com/watch?v=kE6aC51LMv0 The output should preferably be vector graphics. Nevertheless, this is how far I ...
9
votes
2answers
186 views

Light object / source in PGF / TikZ / PGFplots pictures like in PSTricks

I came across the PSTricks animation located at http://melusine.eu.org/syracuse/pstricks/pst-solides3d/animations/a43/ http://i.stack.imgur.com/NlqHZ.gif and noticed that it uses a light object / ...
5
votes
0answers
75 views

Using Ghostscript to compress pdf with 3D content

I have used Ghostscript to compress the pdf output of some large files as it seems to do a better job of getting rid of duplicate font information than Adobe Acrobat (which sometimes loses certain ...
11
votes
5answers
2k views

How one can draw 405 degree angle in learning material?

I would like to know how one can draw teaching material of trigonometry in LaTeX? Namely, I was looking how to draw 405 degree angle i.e. unit circle, a line segment to the circumference and a spiral ...
16
votes
6answers
617 views

Draw a smooth surface

I would like to draw a smooth surface like http://mathematica.stackexchange.com/questions/20912/how-to-draw-a-higher-genus-surface but using Asymptote, TikZ, Metapost, PStricks, or other TeX friendly ...
4
votes
1answer
98 views

Drawing Ellipsoids in Asymptote; Camera too Close

I am trying to draw a set of Ellipsoids in Asymptote which are given by an symmetric positive definite matrix or in other words by three vectors v1,v2,v3 of length 1 forming an ONB (the ellipsoids ...
4
votes
1answer
275 views

Best program for 3D plotting for LaTeX [closed]

I'm cross-posting this (also on Mathematics stack exchange, but not really getting the answers I'm looking for, so thinking I may have posted in the wrong community originally). I've hit a roadblock ...
5
votes
1answer
208 views

Best program/package for creating LOTS of function graphs to use in Beamer?

I am looking for program/package recommendations for drawing graphs. I know similar questions have been asked before, but I have some pretty specific needs because of the project I'll be working on. ...
5
votes
1answer
134 views

Clipping Asymptote 3D images

I am using Asymptote to generate 3D images which I embed in .pdf's. Is there a way to clip these 3D images, much like you can clip 2D images to a path? I'd be happy to clip to the interior of a ...
4
votes
0answers
88 views

Asymptote: set camera inside the box defined by the axis

The first figure is the (almost) the example elevation.asy from the demo gallery. I'd like to do an animation of a moving camera navigating in-between the peaks (a bit like a walkthrough in ...
5
votes
1answer
80 views

Asymptote: maintain window size while changing POV in animation

In every Asymptote animation example that I found (see e.g. here or here), the viewpoint is constant during the animation. I would like to make one which consists in a rotating viewpoint, the drawn ...
11
votes
3answers
442 views

Asymptote: draw surface from data points in 3D

In the figure below, you can see 25 curves. Each of these curves was plotted from a list of points in a file mypoints_i.dat. Each of these files contains the exact same number of points. How would ...
10
votes
1answer
314 views

Visualize singular vector fields with TikZ or PsTricks and friends

I am trying to find a good way to make really visually appealing plots of singular vector fields. For example electric fields of point like charges. I already tried this in python without too much ...
1
vote
0answers
37 views

Interact Mode in Asymptote

My question is about the interact mode in Asymptote. On a OS X terminal, I type asy -v <name-of-file>.asy and go to the interact mode. A window containing the relevant picture shows up. ...
1
vote
1answer
101 views

What is the simplest procedure for compiling Asymptote code in WinEdt?

I'm trying to compile a LaTeX document containg Asymptote code in WinEdt and my MWE is this: \documentclass{standalone} \usepackage{asymptote} \begin{document} \begin{asy}[width=10cm,height=10cm] ...
2
votes
0answers
100 views

there is a error when use Asymptote draw figures

I draw a figure by Asymptote, code as: import tube; import graph3; size(7.5cm,0); currentprojection=perspective(7,10,3); currentlight=light(8,10,2); real a=5; path3 ...
8
votes
1answer
116 views

Drawing the Reeb foliation

I am trying to draw the Reeb foliation. So far I have the code and image below. The problem is that one surface is very slightly bulging out through the one in front of it (through the very front ...
16
votes
4answers
450 views

How to draw random simple closed smooth curves but with the same perimeter?

I want to draw some random simple smooth closed curves. Each smooth curve must have the same perimeter but different area. See the following figure to illustrate what I meant clearly. Each smooth ...
0
votes
0answers
87 views

Matching default views of 3D Asymptote graphics

One can compile a 3D image in Asymptote without .prc content as a .pdf that is viewable in any .pdf reader (using the -noprc command line option). This views the 3D image from a certain viewpoint, set ...
2
votes
1answer
74 views

Transform Multiple Asymptote Surfaces Simultaneously?

Is there a way with asymptote to combine two surfaces, so so that I can transform both simultaneously? E.g., below I would like to say surface r = cp+cm;, then do r=rotate(45,Y)*r; instead of ...
6
votes
2answers
425 views

How to draw 3d vector field on a line?

How to draw 3d vector field on a line? I want to visualize the vector field $( m_x(x), m_y(x), m_z(x) )$. After searching "visualize vector field", I find that most plotting software either plotting ...
3
votes
2answers
137 views

Errors with Asymptote

I am trying to draw a simple tetrahedron with the following code (in Asymptote) size(10cm,0); import math; import three; import graph3; currentprojection=perspective(1/3,-1,1/2); real l2=sqrt(0.75); ...
2
votes
1answer
139 views

How to draw the intersection of two surfaces using Asymptote?

I'm trying to draw the intersection of a plane with a hyperboloid with asymptote. The result should either be 2 crossing lines or a conic (ellipse, circle or parabola). Heres the code: ...
1
vote
1answer
70 views

Specifying ticks in Asymptote 3D graph

How do I create 3D axes in Asymptote with customized tick locations? For instance, I know that xaxis3("$x$",-1,1,black,OutTicks(2,2),Arrow3); produces an arrowed-axis with two intervals between -1 ...
3
votes
1answer
133 views

Cannot compile asymptote 3D graphic

I just installed Asymptote on my laptop and while I can compile 2D images, rendering never completes when compiling 3D images. Here is what I did on my Windows 8.1, 64 bit machine: installed ...
2
votes
1answer
142 views

How to fill a planar 3D path in asymptote?

Is there, in Asymptote an equivalent of the fill command that works for planar 3D paths? I thought surface did this: I expected the commands fill(project(p)) and draw(surface(p)) to always ...
4
votes
1answer
146 views

Camera zoom and picture size in Asymptote

I am trying to make a 3D animation in Asymptote involving moving infinite surfaces. I would like to set up a "steady camera", so that a unit ball would always look the same size relative to the ...
1
vote
1answer
190 views

latexmkrc, asymptote and subfolders on Mac OS

I just started to learn asymptote (actually because TikZ is not that great for 3D surfaces and curves on these). To set up my system i would like asymptote to work in a subdirectory in order to keep ...
0
votes
0answers
142 views

Error Asymptote when compilling file ?

I try install program Asymptote at My computer and i follow all instructions from this, when i am compile my file like this : \documentclass[12pt]{article} % Use this form to include EPS (latex) or ...
5
votes
1answer
184 views

Asymptote: Parametric surface isn't working with Spline interpolation

I have a parametric surface that is defined in terms of the Lambert W function and which I want to display with Asymptote. For that the Lambert W function was implemented using Newton's method and the ...
3
votes
1answer
147 views

Labels in 3D mode don't work in Asymptote

When I create 3D asymptote graphics, labels just don't work. When I copy the code from the question in Positioning Labels in Asymptote I get the exact same plot just without the "x". Everything works ...
1
vote
0answers
105 views

How to plot a diamond shape ball in LATEX [closed]

Let d:M \to \mathbb{R} be defined by d(X,Y)=|x_1-y_1|+|x_2-y_2| where X=(x_1,x_2), Y=(y_1,y_2) \in \mathbb{R}^2. This is called the Manhattan metric. Plot the unit open ball B with center at the point ...
7
votes
1answer
194 views

Asymptote: How to draw surfaces with more than four vertices without “seams?”

In Asymptote 3D, I need to draw surfaces with more than 4 vertices, but when I do, either it simply doesn't work (I can't reproduce this in a simple example, but can provide a more complicated case ...