Asymptote is a vector graphics description language for creating technical drawings. Initially, the developers intended to create a tool that would become the standard for the presentation of illustrations in LaTeX . However, asymptote allows you to generate graphic images independently of the TeX system .
| Asymptote | |
|---|---|
| Type of | vector graphics description language |
| Written on | C ++ -like |
| operating system | Cross platform software |
| First edition | |
| Latest version | 2.49 (April 2, 2019) |
| License | LGPL v3 |
| Site | asymptote.sourceforge.net |
Available as output formats: PDF , PostScript , SVG and 3D PRC.
Content
Language Description
A language with C ++ -like syntax , created under the influence of MetaPost .
Usage Examples
The following source code allows you to draw a graph of the Heaviside function using the asymptote language.
Heaviside function graph drawn using the asymptote language
import graph ;
import settings ;
outformat = "pdf" ;
size ( 300 , 300 );
// Function.
real [] x1 = { - 1.5 , 0 };
real [] y1 = { 0 , 0 };
real [] x2 = { 0 , 1.5 };
real [] y2 = { 1 , 1 };
draw ( graph ( x1 , y1 ), red + 2 );
draw ( graph ( x2 , y2 ), red + 2 );
draw (( 0 , 0 ) - ( 0 , 1 ), red + 1.5 + linetype ( "4 4" ));
fill ( circle (( 0 , 1 ), 0.035 ), red );
filldraw ( circle (( 0 , 0 ), 0.03 ), white , red + 1.5 );
// Axes.
xaxis ( Label ( "$ x $" ), Ticks ( new real [] { - 1 , - 0.5 , 0.5 , 1 }), Arrow );
yaxis ( Label ( "$ y $" ), Ticks ( new real [] { 0.5 , 1 }), Arrow , ymin = - 0.18 , ymax = 1.25 );
// Origin.
labelx ( "$ O $" , 0 , SW );
asymptote on different operating systems
Currently, asymptote is supported by most operating systems:
- All 32-bit versions of Microsoft Windows
- All BSD platforms (FreeBSD / NetBSD / OpenBSD / Apple Mac OS X)
- All POSIX Platforms
Many GNU / Linux distributions ( Debian , Ubuntu, and others) contain asymptote in the main repositories.
Links
- Asymptote on Sourceforge
- Examples of using:
- Kryachkov Yu. G. Asymptote for beginners: the creation of drawings in the vector graphics language Asymptote
- Ivaldi F. Euclidean geometry in the vector graphics language Asymptote . Per. from English SOUTH. Kryachkova