Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [asymptote]

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 in .tex files.

4
votes
0answers
47 views

How to understand main packages of Asymptote without its document except for geometry.asy

I am a new user with Asymptote. I used TikZ before and because of personal reasons I start with Asymptote. However, when using Asymptote, I realized that there is no documentation for every package ...
1
vote
0answers
71 views

How to disable the interactive 3D view and prevent Asymptote from generating raster output?

I don't need the interactive 3D view because it will be viewed on papers. I just want to draw vector graphics 3D objects. For the following code, it seems that Asymptote rasterizes the output. Is ...
8
votes
1answer
401 views

How to troubleshoot unwanted white spaces smartly?

Why is there a white space on the left side? \documentclass{standalone} \usepackage{asymptote} \begin{document} \noindent \begin{asy} size(10cm,10cm); draw((0,0)--(100,100)); draw((0,100)--(100,0)); ...
2
votes
2answers
118 views

How to fill color between curves in Asymptote

\documentclass[border=5pt]{standalone} \usepackage{asymptote} \begin{document} \begin{asy} size(5cm); draw((0,0){up}--{right}(3,3){down}--{left}(1,1){right}--{up}(2,2){left}--{down}(0,0)); draw((0,0)...
7
votes
1answer
58 views

Include curve into a filldraw cycle

I have a question regarding asymptote drawing in LaTeX. I'm an absolute novice in using asymptote, and I could not find any help in the manuals I found online. Here is the problem. Starting from ...
5
votes
2answers
199 views

improve code - formulas in perspectives and rotated

I want to reproduce the next image or improve it, that has depth and an effect of small points like stars. \documentclass{standalone} \usepackage{amsmath,amsfonts,amssymb} \usepackage{tikz} \begin{...
3
votes
2answers
120 views

Adding sticker on top of bbox frame

I'm using following asymptote code. size(6cm,4cm,false); import graph; real f(real x) {return sqrt(x);} real xmin=0, xmax=50, xStep = 5, xstep = 0; real ymin=0, ymax=7, yStep = 1, ystep = 0; draw(...
1
vote
1answer
43 views

I can not draw arc in a clockwise direction

with this program in asymptote I have to trace the meridians. settings.outformat = "png"; settings.render = 16; size(6cm,0); import solids; currentlight=Headlamp; // inutile car Headlamp est la ...
3
votes
2answers
84 views

Error with 3D Asymptote graphs

Help me with 3D arc in asymptote. Thank you very much! Code: \begin{asy} settings.outformat="pdf"; import three; size(7.5cm,0); currentprojection=perspective(20,18,8); currentlight=light(8,10,2); ...
8
votes
0answers
75 views

What does the .fit() method of a picture do?

What does the .fit() method of a picture do in the following Asymptote code? picture pic1; real size=50; size(pic1,size); fill(pic1,(0,0)--(50,100)--(100,0)--cycle,red); picture pic2; size(pic2,...
3
votes
2answers
100 views

Drawing the volume of revolution of a region bounded by two curves

I've been preparing my submission of my calculus assignment, and have been typesetting it in LaTeX, using Overleaf v2. There are problems involving the volume (and surface areas) of the solid of ...
-1
votes
0answers
44 views

Asymptote opacity issues

I'm trying to generate an image using Asymptote showing three intersecting triangles. Right now I have All that I want to change is to make the triangles transparent. But it always becomes a blank ...
2
votes
1answer
80 views

Filled contour plot from data set

I want to create a filled contour plot in pgfplot from a dataset mydata.dat I get a ugly picture like this: The code that I use is \documentclass{standalone} \usepackage{pgfplots} \...
4
votes
1answer
65 views

output directory Asymptote in TeXLive

How does the asymptote and asypictureB packages determine the output file and working directories? I tried to use asypictureB and TeXLive to produce my files and put all the output files to a ...
1
vote
1answer
63 views

Running asymptote code in latex

Using some tutorial on the Art of Problem solving forum on Asymptote, I was able to use Asymptote code inline with my Latex like so \begin{figure}[h] \centering \begin{asy} include graph; ...
1
vote
0answers
33 views

Problem with Asymptote

I recently install the latest version of asymptote (2.47), and now Nothing work with asymptote. On windowds 10 system, I have this messages when I want compile a file.asy open with NotePadd++: asy -...
1
vote
0answers
37 views

Asymptote dictionaries.

I have been looking through the manual of Asymptote and it seems it does not have Hash-Tables or dictionaries. Are they present in the language? It does seem like a glaring omission for what ...
0
votes
0answers
34 views

Make Asymptote read YAML or JSON files

I often write my data-files from simulations written in Python or C++ in json on yaml files. I recently heard about the asymptote software which can be used for really 2d and 3d plotting. Is it ...
1
vote
0answers
34 views

ASymptote export animation as mp4

I want to make a series of images titled anim0.png, anim1.png corresponding to different frames of an animation. As I understand, the examples page typically outputs a pdfmovie which can only be ...
1
vote
1answer
63 views

Asymptote could not load module (filename-1.asy)

after seeing this answer, I tried to make my own ball and stick model of a diagram. So I made the following code: \documentclass{standalone} \usepackage[inline]{asymptote} \begin{document} \begin{...
1
vote
0answers
39 views

How to define materials in Asymptote?

I searched in the Asymptote documentation and found that material is handled as a structure in three_light.asy that has the following definition: struct material { pen[] p; // diffusepen,ambientpen,...
1
vote
0answers
68 views

vector graphics programming languages [closed]

What is the best vector graphics programming language (similar to Asymptote)? I'd like to be able to control 3D rendering parameters such as lighting, perspectives, material (optics, textures). ...
0
votes
1answer
144 views

Is this the right way to use Asymptote in LaTeX?

This is the code i have written: \documentclass[12pt,openany]{book} \usepackage{asymptote} \begin{document} \begin{asydef} import three; import solids; \end{asydef} \begin{asy} draw((0,0)--(...
2
votes
1answer
70 views

How to normalize the coordinate without changing the object size?

The following MWE produces \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-circ} \psset { unit=1cm, dipolestyle=zigzag, } \begin{document} \begin{pspicture}[showgrid=...
3
votes
0answers
121 views

TikZ Arrowheads for Asymptote

For some figures, I need Asymptote over TikZ. However, I like the arrowheads in TikZ more than I do the arrowheads in Asymptote, particularly the stealth' arrowhead in TikZ. Is there a way to create ...
0
votes
0answers
42 views

Start topics on Asymptote

This again I am with my terrible English. Sorry, please ask such questions here is not really appropriate, but I have exactly one question and the other questions, if you can help me, I will ask in a ...
4
votes
1answer
65 views

The light rendering in Asymptote

I am trying to draw a hemisphere decomposed with multiple patches. Here is the figure The issue is that on the periphery, it gets very dark. I would like the surface to be less smooth, so it can be ...
0
votes
0answers
43 views

Why does Asymptote break when used within a command and how do I fix it? [duplicate]

I am trying to include an Asymptote geometry diagram in one of my ShareLaTeX documents. I placed it within a math problem macro in a separate file (which is a system I've been using to organize math ...
1
vote
1answer
54 views

What is the difference between the many options given by “Texmaker” to run a script?

I always run with "Quick build" and it works good. I wonder what is the usefulness of the other options like "LaTex", "Dvi->PS", "PDFLaTex","XeLaTex" etc. Thank you
3
votes
0answers
86 views

How could I draw mesh line for nurbs surface in asymptote?

For a bezier patch, I can define the patch as a surface and plot mesh line, as in the example code: import three; size(10cm); currentlight=Viewport; surface s=surface(patch(new triple[][] { {(0,...
0
votes
0answers
105 views

Asymptote errors

I use Asymptote to create 3D plots with the asymptote package loaded in my preamble \documentclass[a4paper]{article} \usepackage[no-math,cm-default]{fontspec} \usepackage{amsmath} \...
10
votes
5answers
3k views

How to draw $y^4 - y^2 = x$?

I am having some trouble to draw the equation $y^4 - y^2 = x$. Can someone help me? Thanks a lot!
0
votes
0answers
67 views

There are surprisingly few information about the asymptote package… what do i do after i download it? Is it a package for LaTeX?

Ive opened it i i get this...... do i type stuff inside? Or.......what should i do with it? Im very new to asyptote actually Or cn anybody reccomend me any sites or videos to get me started? I ...
2
votes
1answer
152 views

Drawing a 3D commutative diagram

I was drawing a commutative-diagram when I had the (questionable?) idea of drawing a tetrahedral version of it. I used Asymptote in the hope of getting good-looking thumbnail and a nice embedded 3D ...
2
votes
1answer
95 views

Bug with Asymptote: horizontal black lines

I encounter this bug with Asymptote (latest version on Windows): These horizontal lines are not from my code, they underisably appear. I have found only this link reporting the same problem, but no ...
2
votes
3answers
545 views

Drawing a convolution with Tikz

I need to draw something like this, can anyone tell me how to do this with Tikz or recommend a program to draw diagrams like this one?
0
votes
0answers
45 views

How to draw intersection of a line and surfaces with `bsp` package of Asymptote

It seems that if I want to draw intersection of planes and output vector graphics (rather than raster graphics with option settings.render non-zero), I have to use bsp package. In the Asymptote ...
2
votes
0answers
60 views

Asymptote and ePiX: What is the advantage of one over the other?

Links: Asymptote, popular vector graphics language. ePiX, is also similar software created by one of the top Stack Exchange members. Both are based on C, which is nice for me because I hate the TikZ ...
0
votes
0answers
32 views

Asymptote labels cause problems in ShareLaTeX

I've recently tried to move some of my LaTeX projects into ShareLaTeX. All of my Asymptote code is written directly into the .tex files in an asy environment. When I compile, any code that included ...
0
votes
0answers
65 views

Windowless 3D in Asymptote; Depth=0 error

I've followed the accepted answer to this question to invoke Asymptote in an environment without GUI using the -offscreen option. But it fails on this file: texpreamble(" \newcommand{\...
2
votes
1answer
138 views

Rainbow text on a surface in Asymptote

I'm looking for a way to color a text rendered on the surface with a gradient. Below is an example showing the surface with the gradient and the text in black. How can the text color be changed? \...
0
votes
1answer
193 views

How to draw pictures of surfaces in LaTeX [closed]

So i've recently started to practise drawing (orientable) surfaces using TikZ wich resulted in my first figure that looks like this: Which i am quite proud of, even though it might not be much. ...
1
vote
0answers
90 views

Asymptote message on GNU Emacs using TeX Live 2018

I use GNU Emacs 25.3.1 (on Windows 10) for my work with LaTeX and friends, which include working with Asymptote files, using the mode asy-mode. Using TeX Live 2017, I compile asymptote files without ...
1
vote
0answers
120 views

Asymptote - non-zero values for settings.render

For any values greater than zero, I could not produce any figure using asymptote. Can someone help me, what the issue is? I tried the top answer at here. With settings.render=0 it works fine. However ...
4
votes
1answer
106 views

Help to create arara yaml file for asymptote automated compilation

I have recently discovered the asymptote package to create 3D figures, I have installed the executable version on my computer and configured TexStudio to run it, only it is done manually using tools> ...
0
votes
0answers
39 views

Label hidden by a surface

The asymptote code : settings.outformat = "png"; settings.render = 16; import solids; import graph3; import three; import labelpath3; size(5cm); //currentprojection=orthographic(10,5,2); ...
1
vote
1answer
63 views

problems with labelpath asymptote

I would like to write a text along a circumference with Asymptote's module labelpath3. Below there is the code: size(200); import labelpath3; path3 g = shift(-Z)*unitcircle3; string txt = "Orizzonte";...
2
votes
1answer
96 views

How to draw an intersection between a sphere and a plane in asymptote

I'm learning to use asymptote. I'm trying to draw an intersection between a sphere and a plane. Below I post the code. There do not seem to be any errors in the concept: I draw the sphere, the back ...
0
votes
0answers
40 views

Asymptote picture as LaTeX function argument [duplicate]

I have an Asymptote diagram I'd like to include as part of an argument to a LaTeX function. The diagram works just fine when I compile it on its own: \documentclass[12pt]{article} \usepackage{...
2
votes
1answer
85 views

Underbrace in asymptote

The answers in this question give a way to draw an underbrace in Tikz. But I'd like to know if it is possible to draw underbrace using asymptote? Because there is no package in asymptote seems to be ...