Several packages exist to plot data and visualize data relations, which are as follows:
Winston
: (refer to the Packages section in Chapter 1, Installing the Julia Platform) This package offers 2D MATLAB-like plotting through an easyplot(x, y)
command. Add a graphic to an existing plot withoplot()
, and save it in the PNG, EPS, PDF, or SVG format withsavefig()
. From within a script, usedisplay(pl)
, wherepl
is the plot object to make the plot appear. For a complete code example, refer toChapter 10\winston.jl
(use it in the REPL). For more information, see the excellent docs at http://winston.readthedocs.org/en/latest/ and https://github.com/nolta/Winston.jl for the package itself.PyPlot
: (refer to the Installing and working with IJulia section in Chapter 1, Installing the Julia Platform) This package needs Python and matplotlib installed and works with no overhead through thePyCall
package.Here is a summary of the main commands:
plot(y)
,plot(x,y)
plots y versus x...