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.

plot([rand(10), rand(20)], color = [:black :orange], line = (:dot, 4), marker = ([:hex :d], 12, 0.8, Plots.stroke(3, :gray)))
Gnuplot Produced by GNUPLOT 5.4 patchlevel 2 0.2 0.4 0.6 0.8 5 10 15 20 y1 y2 y1 y1 y2 y2

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