Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (51 sloc) 1.81 KB

Install

First, add the package

Pkg.add("Plots")

# if you want the latest features:
Pkg.checkout("Plots")

then get any plotting packages you need (obviously, you should get at least one [backend](@ref backends)).

Pkg.add("PyPlot")
Pkg.add("GR")
Pkg.add("UnicodePlots")
Pkg.add("PlotlyJS")

Finally, you may wish to add some extensions from the [Plots ecosystem](@ref ecosystem):

Pkg.add("StatPlots")
Pkg.add("PlotRecipes")

Initialize

using Plots # or StatPlots, or PlotRecipes

[Choose a backend](@ref backends), and optionally override default settings at the same time:

pyplot(size = (300,300), legend = false)
<div style="background-color: lightblue; padding: 10px; border-style: solid; border-width: medium; margin: 10px;">
Tip: Backend methods are lowercase, and match the corresponding backend package name.
</div>
<div style="background-color: lightblue; padding: 10px; border-style: solid; border-width: medium; margin: 10px;">
Tip: The underlying plotting backends are not imported and initialized immediately, thus they are
loaded on demand to reduce dependencies.
</div>
<div style="background-color: lightblue; padding: 10px; border-style: solid; border-width: medium; margin: 10px;">
Tip: Plots will pick a default backend for you automatically based on what backends are installed.  You can
override this choice by setting an environment variable in your ~/.juliarc.jl file: ENV["PLOTS_DEFAULT_BACKEND"] = "PlotlyJS"
</div>
<div style="background-color: lightblue; padding: 10px; border-style: solid; border-width: medium; margin: 10px;">
Tip: You can override standard default values in your ~/.juliarc.jl file: PLOTS_DEFAULTS = Dict(:markersize => 10, :legend => false)
</div>