Home

AsyPlots.jl

Introduction

AsyPlots is a Julia package for creating figures in Asymptote. Asymptote is a mature language for technical drawing in two and three dimensions. This package provides access to

Installation

AsyPlots requires Asymptote, which you might already have as a part of your TeX installation (run asy --version from the command line to check). If you want to use the Cairo backend, install Cairo.jl via Pkg.add(Cairo).

Examples

using AsyPlots
n = 250; srand(1)
A = [(x,y) == (0,0) ? 0 : 1/(x^2+y^2) for x=0:n-1,y=0:n-1]
B = randn(n,n)
plot(real(fft(A.*B)))

fgf

x = cumsum(rand(-1:1,n))
y = cumsum(rand(-1:1,n))
Plot(Path(x,y;color="White"),
     bgcolor="Black",
     axispen="Red",
     axes=true,
     axisarrow=Arrow())

fgf