require("Winston")
using Winston
x = [-pi:0.2:pi]
y = sin(x)
p = FramedPlot()
add(p, Curve(x, y))
file(p, "winston.eps")
Winston requires cairo, pango, & tk to be installed.
OS X (MacPorts):
$ sudo port install cairo +x11
$ sudo port install pango +x11
$ sudo port install tk +x11
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/local/lib
OS X (Homebrew):
$ brew tap homebrew/dupes
$ brew install cairo pango tk
$ export LD_LIBRARY_PATH=/usr/local/lib:/opt/X11/lib:$LD_LIBRARY_PATH
Note: installing tk with the --enable-aqua
option appears to break Winston.
Also, installation can be tricky if both Apple's X11.app and XQuartz are
present.
Ubuntu:
$ aptitude install libcairo2 libpango1.0-0 tk-dev
$ cd julia
$ make -C deps install-tk-wrapper
julia> load("pkg.jl")
julia> Pkg.add("Winston")
Developer preview. API in flux.