Source code Author Update time

using Plots

Plot multiple series with different numbers of points. Mix arguments that apply to all series (marker/markersize) with arguments unique to each series (colors). Special arguments line, marker, and fill will automatically figure out what arguments to set (for example, we are setting the linestyle, linewidth, and color arguments with line.) Note that we pass a matrix of colors, and this applies the colors to each series.

ys = Vector[rand(10), rand(20)]
plot(ys, color = [:black :orange], line = (:dot, 4), marker = ([:hex :d], 12, 0.8, Plots.stroke(3, :gray)))
Gnuplot Produced by GNUPLOT 5.2 patchlevel 8 0.00 0.25 0.50 0.75 1.00 5 10 15 20 y1 y2 y1 y1 y2 y2

This page was generated using DemoCards.jl and Literate.jl.