dummy-link

GR

Plotting for Julia based on GR, a framework for visualisation applications

Readme

The GR module for Julia

The MIT License Build Status GR GR

Join the chat at https://gitter.im/jheinen/GR.jl

This module provides a Julia interface to GR, a framework for visualisation applications.

From the Julia REPL an up to date version can be installed with:

Pkg.add("GR")

The Julia package manager will download and install a pre-compiled run-time (for your hardware architecture), if the GR software is not already installed in the recommended locations.

In Julia simply type using GR and begin calling functions in the GR framework API.

Let's start with a simple example. We generate 10,000 random numbers and create a histogram. The histogram function automatically chooses an appropriate number of bins to cover the range of values in x and show the shape of the underlying distribution.

using GR
histogram(randn(10000))

Using GR as backend for Plots.jl

Plots is a powerful wrapper around other Julia visualization "backends", where GR seems to be one of the favorite ones. To get an impression how complex visualizations may become easier with Plots, take a look at these examples.

Plots is great on its own, but the real power comes from the ecosystem surrounding it. You can find more information here.

Installing GR from source

If you don't want the pre-built binaries to be copied to your Julia run-time, you will have to install the GR framework before using the Julia GR package. Clone the main source using:

git clone https://github.com/jheinen/gr

and build and install as usual with:

cd gr
make
make install

This will install the GR framework into the directory /usr/local/gr.

If you don't have privileges to write to the /usr/local directory, you should install the GR framework in your home folder:

cd gr
make GRDIR=$HOME/gr
make GRDIR=$HOME/gr install

Once the GR framework is installed you can use Pkg.add("GR") in Julia to install the GR module. You are now ready tu use GR.

First Commit

01/13/2015

Last Touched

4 days ago

Commits

315 commits

Requires:

Used By: