Skip to content


Subversion checkout URL

You can clone with
Download ZIP
2D plotting for Julia
Failed to load latest commit information.
doc closeall function to close all open figures
src fix #228
test fixes for 0.4
.gitignore Add .gitignore
.travis.yml more travis tweaks
LICENSE update copyright years
NEWS update NEWS Clean up whitespace
REQUIRE fix compat on 0.3

Winston: 2D Plotting for Julia


julia> Pkg.add("Winston")

Getting started

Winston offers an easy to use plot command to create figures without any fuss. After Winston is loaded by typing using Winston, the most basic plot can be created by just writing

julia> plot(x, y)

There is also an oplot command to add objects into already existing plots. To add something to this, use

julia> oplot(x2, y2)

And finally save it with

julia> savefig("figure.png")   # .eps, .pdf, & .svg are also supported

More elaborate figures can be created by using the quick option for color, line, and symbols

julia> plot(x, y, "r--")

This creates a red dashed curve. Abbreviations for colors and lines/symbols are same as in matplotlib. The plot command can also take more then one set of vectors and style options, like this

julia> plot(x, y, "b:", x2, y2, "g^")

which creates a blue dotted line and green triangles.


Hosted by Read The Docs.

Something went wrong with that request. Please try again.