Asymptote (vector graphics language)

Asymptote is a descriptive vector graphics language – developed by Andy Hammerlindl, John C. Bowman (University of Alberta), and Tom Prince – which provides a natural coordinate-based framework for technical drawing.

Asymptote typesets labels and equations with LaTeX, producing high-quality PostScript, PDF, SVG, or 3D PRC output.

Asymptote fully generalizes MetaPost path construction algorithms to three dimensions,[3] and compiles commands into virtual machine code for speed without sacrificing portability.

High-level graphics commands are implemented in the Asymptote language itself, allowing them to be easily tailored to specific applications.

The following source code allows you to draw a graph of the Heaviside function by means of the Asymptote language.

Compiled output of Asymptote example code