Install some commonly needed modules

wget https://raw.githubusercontent.com/cpraveen/cfdlab/master/bin/julia.jl
julia julia.jl

To update all installed packages

using Pkg

On Linux, to install MAT, you need the hdf5-tools package to be installed first

sudo apt install hdf5-tools

To test the plotting, do the following (you must have installed Plots modules using Pkg.add)

using Plots
x = linspace(0,2*pi,100);
y = sin.(x);

To enable automatic recompilation in the REPL, install the Revise package and enable it in startup file: $HOME/.julia/config/startup.jl

ENV["MPLBACKEND"]="tkagg" # to use Agg backend with PyPlot
using Revise

Plotting gui backend

To use TkAgg, do

julia> ENV["MPLBACKEND"]="tkagg"
julia> using PyPlot

or set this as default in $HOME/.matplotlib/matplotlibrc file

backend : TkAgg