Clever Geek Handbook
📜 ⬆️ ⬇️

Asymptote

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
Gravity well plot.svg
Type ofvector graphics description language
Written onC ++ -like
operating systemCross platform software
First edition
Latest version2.49 (April 2, 2019)
LicenseLGPL v3
Siteasymptote.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:
    • PIPRIME.FR
    • ASYMPTOTE un puissant langage de graphisme vectoriel
  • 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
Source - https://ru.wikipedia.org/w/index.php?title=Asymptote&oldid=100274811


More articles:

  • Livensky rural settlement (Voronezh region)
  • Karaychevskoye Rural Settlement
  • Khodzinskoye rural settlement
  • Busk
  • Russian State Agrarian Correspondence University
  • Russian Football Championship 2010
  • New Time (Latvia)
  • Chemulga
  • Black-cheeked Astryld
  • Jeannevere, Charles

All articles

Clever Geek | 2019