Plots types documentation

Everything in Plots uses the plot command. Different “plot types” in Plots.jl are called “series”. scatter is just shorthand for plot(seriestype=:scatter,...).

There is definitely a page missing which defines the different built-in series types. But this page

https://juliaplots.github.io/supported/

shows which series are supported on each backend. In addition, recipe libraries like PlotRecipes.jl and StatPlots.jl (and any other library! It’s not just Plots libraries that do this!) add new series recipes as well.

So with that in mind, from the examples plotting a histogram is

histogram(randn(1000),nbins=20)

which is the same as

plot(seriestype=:histogram,randn(1000),nbins=20)

For reference this then just calls the series recipe defined here:

https://github.com/JuliaPlots/Plots.jl/blob/master/src/recipes.jl#L382

Though I really think there should be a nice page which lists the built-in series recipes along with an example. @mkborregaard

5 Likes