Book Image

Getting Started with Julia

By : Ivo Balbaert
Book Image

Getting Started with Julia

By: Ivo Balbaert

Overview of this book

Table of Contents (19 chapters)
Getting Started with Julia
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
The Rationale for Julia
Index

Graphics in Julia


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 easy plot(x, y) command. Add a graphic to an existing plot with oplot(), and save it in the PNG, EPS, PDF, or SVG format with savefig(). From within a script, use display(pl), where pl is the plot object to make the plot appear. For a complete code example, refer to Chapter 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 the PyCall package.

    Here is a summary of the main commands:

    • plot(y), plot(x,y) plots y versus x...