

These are documented at the attributes page. In Plots.jl, the modifiers to plots are called attributes. we're done right? No! We need to style our plots. Note that in the case where p is omitted, Plots.jl uses the global Plots.CURRENT_PLOT automatically in the same manner.

Note that we could have done the same as above using an explicit plot variable: x = 1:10 y = rand(10, 2) # 2 columns means two lines Let's add another line to our current plot: z = rand(10) Thus we can plot multiple lines by plotting a matrix of values and each column is interpreted as a separate line: x = 1:10 y = rand(10, 2) # 2 columns means two linesĪdditionally, we can add more lines by mutating the plot object. a set of related points which form lines, surfaces, or other plotting primitives. In Plots.jl, every column is a series, i.e. The plot is displayed in a plot pane, a stand-alone window or the browser, depending on the environment and backend (see below). X = 1:10 y = rand(10) # These are the plotting data Assuming you have installed Plots.jl via Pkg.add("Plots"), you can plot a line by calling plot on two vectors of numbers.

#Adding horizontal line in scatter plot matplotlib how to#
Its main goal is to introduce you to the terminology used in the package, how to use Plots.jl in common use cases, and put you in a position to easily understand the rest of the manual. This is a guide for getting you up and running with Plots.jl.
