Skip to main content

Questions tagged [asymptote]

Asymptote is a TeX-aware vector graphics language with built-in 3D capabilities. This tag, which is compatible with the [diagrams] tag, 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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

FreeGLUT necessary for Asymptote?

I use Asymptote. Upon compiling, I stumble across such error: asy: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory After some googling, ...
Gargantuar's user avatar
  • 1,174
0 votes
0 answers
60 views

Asymptote sphere is "blotchy" and conversion from PDF to SVG is fuzzy and marred by lines

I am just starting to use Asymptote to generate a ball diagram of nitric oxide. My MWE is a file called ball.asy: settings.tex = "lualatex"; settings.outformat = "pdf"; settings....
chandra's user avatar
  • 3,104
1 vote
0 answers
54 views

3D Surfaces in Asymptote Help

I am trying to make this figure in asymptote. The curve has the equation x^2+y^3/3-z^2=0 with the restriction x^2+y^2+z^2=1 so the points belong to the unit sphere. I can plot this curve on a sphere, ...
oVlad's user avatar
  • 111
0 votes
0 answers
30 views

Asymptote: white gaps in surface

In a question and answer of mine, I provided some Asymptote code which compiled nicely. Now, compiling the same code, I get a different output. Here the code repeated, identical to the old answer: \...
Gargantuar's user avatar
  • 1,174
0 votes
2 answers
195 views

How to plot a function in integral with ln function with TikZ? [closed]

how to plot the function $f:x\mapsto \int_0^{x}\frac{1}{\sqrt{1+t^2*ln^2(t)}}\, \textrm{d}t$ with TikZ? tnx
smail065's user avatar
1 vote
0 answers
49 views

Asymptote and PDF version 1.4

Since version 2.88, Asymptote produces PDF version 1.5 (announcement). I need to produce a PDF version 1.4 with LaTeX. When I use the pdf14 package in LaTeX, I get a warning pdfTeX warning: pdflatex (...
user36236's user avatar
  • 111
1 vote
1 answer
46 views

How to crop or scope the range of z in 3d in Asymptote

From this below code with Asymptote and run the code with Overleaf. \documentclass{article} \usepackage{graphicx} % Required for inserting images \usepackage[inline]{asymptote} \begin{document} \begin{...
sukmudmaisus's user avatar
1 vote
0 answers
56 views

Asymptote: draw a torus with 6 holes drilled in it

I am using Asymptote to generate a 3D image of a torus with 6 holes drilled in it. I don't know how to merge the holes with the surface. I can only approximate it with cylinders, so the intersections ...
hbghlyj's user avatar
  • 201
0 votes
0 answers
78 views

inserting an image using asymptote in an article using pdf latex

I am using TexStudio and would like to insert a 3D interactive image using asymptote. I have found a few examples on how to generate asymptote 3D interactive image using standalone mode. Now, I would ...
RAJENDRA PRASAD G's user avatar
1 vote
1 answer
84 views

Transparent surface color of a cyclic 3d path Asymptote (Surface opacity issue)

I am trying to create a graphic similar to the following one from another question on here: But already when i try to render a colored transparent surface of a simple plane, something is not looking ...
derdu's user avatar
  • 11
0 votes
0 answers
87 views

Spherical harmonics

For my lecture notes I need to visualize spherical harmonics in Asymptote. Using the notes from https://mathworld.wolfram.com/SphericalHarmonic.html triple fs(pair p){ real x=sin(p.x)*cos(p.y)*(sqrt(3/...
ewa's user avatar
  • 71
1 vote
1 answer
79 views

Nesting sagetex in animate for tikz (and asymptote) gif - possible or impossible?

I am running Windows 10 or 11 (I don't know), have WSL2 running on my system - Ubuntu distribution, and have SageMath downloaded on my computer. I have successfully established contact between all ...
user avatar
1 vote
0 answers
27 views

Mix two projections in the same picture with Asympote

I'm trying to mix several currentprojection in the same picture with Asymptote, but the following example code doesn't work as expected. size(0,25mm); settings.render = 0; settings.prc = false; import ...
MB4E's user avatar
  • 1,106
1 vote
1 answer
80 views

How can I make arrow from parts of a formula in Asymptote? (or: measure the width of a label, get anchor around a label)

In summary: I want to draw the following figure in Asymptote. My code is as follows. size(5cm); draw(scale(8, 4)*unitsquare); label("$\underbrace{123}+\underbrace{456}=\underbrace{789}$", (...
user202729's user avatar
  • 7,563
3 votes
1 answer
144 views

feasible region

I want to plot the feasible region. But I don't know how. I need guidance. \documentclass[tikz, border=5mm]{standalone} \begin{document} \begin{tikzpicture} \draw[gray!50, ...
mzn's user avatar
  • 333
0 votes
0 answers
75 views

Problems with rendering images in asymptote

I would like to construct images from the asymptote package, but when I entered asy File-1.asy It gave me this pic.addBox(position,position,min(f),max(f)); How do I solve the problem? My asy version ...
xxxx036's user avatar
  • 139
1 vote
0 answers
38 views

Asymptote cannot label in 3d graphs

I have an updated Asymptote (version 2.86) and Ghostscript (version 10.02), but cannot get Asymptote to label 3-dimensional graphs. For example, settings.outformat="pdf"; import three; size(...
Matt's user avatar
  • 41
0 votes
1 answer
48 views

Asymptote returns errors with labels

When trying to run a simple Asymptote example I get errors with creating labels. My Ghostscript version is 10.02, Asmptote v2.86 in Windows 10. For example, running import three; currentprojection=...
Matt's user avatar
  • 41
0 votes
0 answers
48 views

Asymptote Family tree with marriage ties

How can I create a family tree with marriage ties with Asymptote? Currently, I have this Asymptote program: import drawtree; treeLevelStep = 2cm; TreeNode root = makeNode( "Root" ); ...
V205's user avatar
  • 1
1 vote
0 answers
88 views

Asymptote with Ghostscript 10 does not produce pdf or png

I am running Asymptote version 2.86 on Windows 10. I have installed Ghostscript 10.04 and have a confi.asy file saved in .asy\ directory that specifies the location of Adobe Reader and ImageMagick: ...
Ted Black's user avatar
  • 495
2 votes
1 answer
358 views

Asymptote Code Generates .asy Files, But Asymptote Execution Fails

Update Per the advice of a user on stack overflow, https://stackoverflow.com/questions/77449192/issue-with-asymptote-execution-in-latex-failed-to-create-directory-asy, I upgraded all of my MikTeX ...
user avatar
2 votes
1 answer
271 views

Asymptote Error: Missing PDF File during Compilation

I'm encountering an issue while trying to compile a LaTeX document with an Asymptote figure. I receive the following error message: Package asymptote Warning: file `asymptote-latex-1.pdf' not found on ...
user avatar
0 votes
0 answers
41 views

How to invoke Asymptote from an older version of TeXLive (2020), without it fishing files from another newer version (2023)?

In one of my files I included the asymptote package for making interactive graphs. I installed the TeXLive 2020 distribution on my PC and everything worked perfectly. However, I recently decided to ...
TFra6's user avatar
  • 179
0 votes
0 answers
61 views

Why can't Asymptote read 3^x/x?

I had created a figure in Geogebra of f(x)=3^x/x!, and when I tried to export it as Asymptote code, I got the following: /* Geogebra to Asymptote conversion, documentation at artofproblemsolving.com/...
Doge with shades's user avatar
0 votes
0 answers
39 views

How do I get gsl to work in Asymptote?

I hope I can ask this question here. I have downloaded Asymptote from windows-binaries and want to run an asy-program that contains the row (it has worked a long time ago) import gsl; But that seems ...
anders's user avatar
  • 131
3 votes
2 answers
195 views

Shading 3D arrows with conical tips

I have the following figure that represents some electromagnetic field. The figure was somewhat replicated from this one: You can see that the original one has some shadings to the arrows while mine ...
SolidMark's user avatar
  • 1,419
4 votes
2 answers
403 views

Add grid points to a torus

I would like to add "dots/points" to each grid intersection in the torus below. \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{colormaps} \pgfplotsset{...
aprendiz's user avatar
  • 143
1 vote
1 answer
81 views

It used to work, but "plane" is not rendering in 3D in asymptote

I have a figure that I created some time ago that includes 3 orthogonal planes. It rendered fine before, but now when I compile it, two planes render as triangles, and the third doesn't render at all. ...
Nat Kuhn's user avatar
  • 676
2 votes
1 answer
38 views

Asymptote cygwin exception

I have an Asymptote script which computes some values of a pair K. The values are increasing and when the pair below is attained I get a "cygwin exception". K= (-1.53675691024507e+74,-4....
Stéphane Laurent's user avatar
0 votes
3 answers
144 views

An easy way to draw this picture

I'm using tikz and would like to obtain this picture: My try: \documentclass[a4paper,12pt]{book} \usepackage{tikz} \usepackage{tikz-cd} \usetikzlibrary{arrows,patterns,snakes,fit,shapes.geometric,...
LH8's user avatar
  • 103
0 votes
0 answers
150 views

Why isn't asymptote working in TeXstudio?

\documentclass[12pt]{article} \title{} \author{ } \date{} \setlength{\parindent}{0pt} \pdfpagewidth 8.5in \pdfpageheight 11in \topmargin 0in \headheight 0in \headsep 0in \textheight 9in \textwidth 6....
William R Li's user avatar
1 vote
2 answers
2k views

How to draw an eagle?

I would like to draw an eagle with TiKz, with one continuous curve. The eagle can be simpler, but basically like this with symmetric wings. The tikz code is needed to replace the bird below with the ...
Epa's user avatar
  • 3,481
0 votes
1 answer
79 views

How to adjust subfigures with pgfplots and asymptotic plots?

I am trying to make a figure with subfigures containing plots made with asymptotic functions and pgfplots. As one may see, the sizes of subfigures are different. I wish to make all the subfigures of ...
Formal_this's user avatar
0 votes
0 answers
108 views

Asymptote: Shipout to SVG not working on MacOS

Running on 2023 M2 Pro Macbook pro, running MacOS Ventura 13.2.1 Hello, I'm unable to export any of my asymptote diagrams as an svg file, although I was able to easily on my old windows machine. This ...
bahab's user avatar
  • 1
1 vote
0 answers
63 views

Lighting in Asymptote

I am drawing an elliposid with the following simple code import graph3; unitsize(1cm); import three; currentprojection=orthographic(1,3.5,0.6,zoom=.8); pen p=white+opacity(1); real a=1.5,b=3,c=4.5; ...
35T41's user avatar
  • 327
1 vote
0 answers
191 views

Parallel Transport on a Hyperbola

Disclaimer: I'm very new to fancy TeX pictures..as you can see by my reputation 1 on this exchange. I recently came across this post, describing how to the draw parallel transport of a vector on a ...
Mike_MasterinMath's user avatar
3 votes
0 answers
35 views

How to smooth a tube in Asymptote?

This tube is constructed around a path with 1200 points: Its rendering is a bit slow (I want to generate several such tubes to do an animation) and the tube is not highly smooth (if sufficiently ...
Stéphane Laurent's user avatar
0 votes
1 answer
43 views

Asymptote out of memory error when generating several files

I run the Asymptote code below with Asymptote on Windows. This code should generate 180 pictures. It worked fine before, but maybe I was on Linux, I don't remember. Now it generates two pictures only ...
Stéphane Laurent's user avatar
1 vote
1 answer
54 views

Setting the current light in recent version of Asymptote

I have a not so old Asymptote code and my settings of currentlight do not longer work with a more recent version. This is the code: currentlight = light(gray(0.85), ambient=black, specularfactor=3, ...
Stéphane Laurent's user avatar
3 votes
3 answers
267 views

animation from Random Polygon to Ellipse

For an animation with TikZ and Asymptote (that I am somehow familiar with), its size is accumulative with the number of steps. I am mimicking animation for From Random Polygon to Ellipse, take a ...
Black Mild's user avatar
  • 17.9k
2 votes
1 answer
70 views

draw a surface from a matrix of points in asymptote latex

Let $S$ be a surface in $\mathbb{R}^3$. I have a large set of points $(x, y, z)$ belonging to this surface, and I want to draw it using Asymptote in LaTeX. Here is the version of my code that is not ...
rihani's user avatar
  • 153
3 votes
0 answers
78 views

How to implement some functions in C++ for Asymptote?

I implemented some special functions in pure Asymptote language and they are useful. But one recommends me to implement them in C++ instead. I'd like (and I already have these functions in C++) but I ...
Stéphane Laurent's user avatar
4 votes
2 answers
218 views

Rotating a plane around its edge on TikZ

I'm trying to rotate the red plane in the right side around the its edge AB, the question is actually about rotating anything around a arbitrary path, I know the rotate around command and that I can ...
Mrcp82's user avatar
  • 43
2 votes
1 answer
141 views

How to configure Emacs for Asymptote?

I'm new to Emacs. I followed some intructions to use it for Asymptote but that does not work. In ~.emacs, I have: (add-to-list 'load-path "~/.emacs.d/site-lisp") (load "asy-mode.el"...
Stéphane Laurent's user avatar
1 vote
1 answer
82 views

Any 3D issues with latest versions of Asy and Ghostscript?

I just would like to submit this question: I have recently updated the versions of asymptote (2.85 now) and ghostscript (gs10.01.1) and since, I'm totally unable to compile my .tex file that used to ...
mxnc baud's user avatar
  • 501
1 vote
0 answers
46 views

Problem with asymptote directory

\documentclass[12pt, a4paper, UTF8, scheme = plain]{ctexrep} \usepackage{amsmath,tasks} \usepackage[inline]{asymptote} \begin{asydef} import olympiad; import cse5; import graph; size(6cm); \end{asydef}...
CasperYC's user avatar
  • 697
8 votes
3 answers
875 views

Drawing six hemispheres

I am trying to draw the following six hemispheres next to each other with their centers aligned on a horizontal line. I am using Alenanno's answer to the question. I have done this just for the ...
Math learner's user avatar
4 votes
2 answers
193 views

draw an ellipsoid contour

I am trying to plot an ellipsoid and a cube inside. Here's what I did. \documentclass{article} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{75}{30} \...
Daniel Neskorodov's user avatar
2 votes
1 answer
151 views

Asymptote figures don't appear with vimtex

I'm trying use the asymptote package with vimtex, it's the first time I try it. When I try to compile, the figure doesn't appear at all in the pdf. This is an example code I found to test: \usepackage[...
DavidCA's user avatar
  • 31
1 vote
1 answer
172 views

Tangent Line to the Curve of Intersection of Two Surfaces

The surfaces $f (x; y; z) = x^2 + y^2 - 2 = 0$ and $g(x; y; z) = x + z - 4 = 0$ meet in an ellipse E. How to plot it.
math131's user avatar
  • 149

1
2 3 4 5
17