Asymptote

製図用の自然座標系を示す記述ベクタ形式言語 From Wikipedia, the free encyclopedia

Asymptote(アシントウト)は、Andy Hammerlindl、Hammerlindl、John C. Bowman、Tom Princeが開発した製図用の自然座標系を示す記述ベクタ形式言語である。UNIXMac OSMicrosoft Windowsで利用できるGNU Lesser General Public License自由ソフトウェアである。

登場時期 2004年 (22年前) (2004)
設計者 Andy Hammerlindl, John C. Bowman, Tom Prince
最新リリース 3.05/ 2025年7月3日 (8か月前) (2025-07-03)
概要 パラダイム, 登場時期 ...
Asymptote
Asymptote
パラダイム 命令型プログラミング, 組版
登場時期 2004年 (22年前) (2004)
設計者 Andy Hammerlindl, John C. Bowman, Tom Prince
最新リリース 3.05/ 2025年7月3日 (8か月前) (2025-07-03)
型付け strong
影響を受けた言語 MetaPost
プログラミング言語 C++
プラットフォーム Cross-platform
ライセンス LGPL
ウェブサイト asymptote.sourceforge.net
テンプレートを表示
閉じる

構文の特徴

LaTeXPostScriptPDFSVG、3DPRC出力に対応している。[1] Metapostの影響を受けたが、構文はC++寄りである。

Tk (ツールキット)Pythonで組まれたxasy.pyは、初心者が手軽に描画や.asyコードとして保存、編集、検証するのに役立つ。

以下のコードはヘヴィサイドの階段関数グラフを描画する。

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);

脚注

関連項目

外部リンク

Related Articles

Wikiwand AI