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.
847 questions
6
votes
1
answer
182
views
Simplifying an Asymptote figure for spherical coordinates
I refer to the second code by the user Chris Chudzicki:
% Source - https://tex.stackexchange.com/a/160528
% Posted by Chris Chudzicki, modified by community. See post 'Timeline' for change history
% ...
1
vote
0
answers
66
views
Images confuse with 3D asymptote
I'm trying to add a 2d image into a 3d graph using this Inserting graphics into asymptote or pgfplots but when i do this it creates 2 separate images one at the center and one at the coordinates (in 2 ...
1
vote
1
answer
39
views
Error while running Asymptote on Windows (file ended while scanning use of \next)
Context
All I want is to be able to plot nice 3D plots of functions of 2 variables. In another question of mine, it became clear to me that pgfplots is limiting my ability to do so. It was suggested ...
1
vote
2
answers
47
views
Asymptote error in RStudio: missing pdf image file
I have problem which is the same as this one: enter link description here
The minimal example is as follows:
---
title: "Asymptote in R Markdown (Windows-safe)"
output:
pdf_document:
...
0
votes
0
answers
38
views
I want to create a new recipe in the LaTeX Workshop for working with Asymptote [duplicate]
How to create a recipe in the LateX workshop of the form: pdflatex -> asy -> pdflatex?
2
votes
1
answer
138
views
The circles with scalable radius
I'm currently drawing some images representing graphs, and i want that the vertices was circles (like big dots), but when i have 2 images, with different coordinates (different scale maybe), the sizes ...
5
votes
3
answers
233
views
Plot any real sequence of real variables as in Geogebra and Desmos
Several years ago, I created a GeoGebra script to plot any real sequence of real variables. As you can see from the screenshot, there is a command on the left:
Sequence({(n, 1/n)}, n, 1, M)
which ...
7
votes
1
answer
248
views
Illustrating a homeomorphism with asymptote
I have tried to reproduce the following figure using asymptote:
This figure is a sketch of the transformation f that produces this
homeomorphism rather than an actual transformation.
The best I can ...
1
vote
0
answers
58
views
Asymptote can't draw figures with fill
Recently i updated my windows and after some compilations, my asymptote setup started to give that error
after trying to draw file with fill command, i tried to reinstall ghostscript and asymptote ...
12
votes
3
answers
376
views
Adding a colormap to a solution curve of a vector field
Here the curve is drawn with a single color (red)
It's easy to get the solution curve. The below figure is drawn in this app for y'=x^2+y^2-1, y(0)=1/2. As you can notice the color of the curve is ...
1
vote
0
answers
74
views
Asymptote shipout does not work for nonzero render parameter [closed]
I have several asymptote files that were working just fine. Now I am having difficulty to make them work.
I am not sure if this is related to a newer version of Asymptote or to a setting I have ...
1
vote
0
answers
68
views
TrigMacros in asy of latex
Has anyone used TrigMacros module of asymptote package in latex? Where should I find TrigMacros.asy file and the functions,... defined in it? I cant run this code now.
\documentclass{article}
\...
4
votes
1
answer
134
views
latexmk with asymptote on windows 10
After writing a simple file like
\documentclass{article}
\usepackage{asymptote}
\begin{document}
Here is a graph:
\[
\begin{asy}
size(6cm);
pair A = (0,0);
pair B = (1,1);
draw(A--B);
\end{asy}
\]...
5
votes
2
answers
154
views
How to draw a parallel tangent to a given curve?
I'm trying to recreate that image
but all i have is
import geometry;
import patterns;
size(10cm);
path p=(0,0)..(1,3)..(2,4)..(4,4)--(4,4)..(2,6)..(-1,7)..(-3.5,6.5)..(-4,5)..(-3.7,3.5)..(-2,3)..(-2,...
4
votes
1
answer
151
views
How to shade part of a circle?
Following is part of a bigger diagram in Asymptote:
I have completed all parts except shading. How can I shade this circle in Asymptote? Radius of circle is 1 unit.
Edit 1:
Here is what I have come up ...