# Installation

### Install

import Pkg

# if you want the latest features:


then get any plotting packages you need (obviously, you should get at least one backend).

Pkg.add("PyPlot")


Finally, you may wish to add some extensions from the Plots ecosystem:

Pkg.add("StatsPlots")


### Initialize

using Plots # or StatsPlots, or PlotRecipes


Choose a backend, and optionally override default settings at the same time:

pyplot(size = (300,300), legend = false)

Tip: Backend methods are lowercase, and match the corresponding backend package name.
Tip: The underlying plotting backends are not imported and initialized immediately, thus they are loaded on demand to reduce dependencies.
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"
Tip: You can override standard default values in your ~/.juliarc.jl file: PLOTS_DEFAULTS = Dict(:markersize => 10, :legend => false)