Skip to content

kmsquire/Winston.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Winston: 2D Plotting for Julia

require("Winston")
using Winston

x = [-pi:0.2:pi]
y = sin(x)

p = FramedPlot()
add(p, Curve(x, y))

file(p, "winston.eps")

Installation

Step 1: install dependencies

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

Step 2: build Tk wrapper

$ cd julia
$ make -C deps install-tk-wrapper

Step 3: install package

julia> load("pkg.jl")
julia> Pkg.add("Winston")

Documentation

Status

Developer preview. API in flux.

About

2D plotting for Julia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 92.1%
  • Python 7.9%