Adding to subplots

Source code Author Update time

using Plots
gaston()

Note here the automatic grid layout, as well as the order in which new series are added to the plots.

plot(Plots.fakedata(100, 10), layout = 4, palette = cgrad.([:grays :blues :heat :lightrainbow]), bg_inside = [:orange :pink :darkblue :black])
Gnuplot Produced by GNUPLOT 5.4 patchlevel 2 -7.5 -5.0 -2.5 0.0 2.5 5.0 7.5 0 25 50 75 100 y1 y5 y9 y1 y1 y5 y5 y9 y9 -10 -5 0 5 0 25 50 75 100 y3 y7 y3 y3 y7 y7 -2.5 0.0 2.5 5.0 0 25 50 75 100 y2 y6 y10 y2 y2 y6 y6 y10 y10 -5.0 -2.5 0.0 2.5 0 25 50 75 100 y4 y8 y4 y4 y8 y8
using Random
Random.seed!(111)
plot!(Plots.fakedata(100, 10))
Gnuplot Produced by GNUPLOT 5.4 patchlevel 2 -7.5 -5.0 -2.5 0.0 2.5 5.0 7.5 0 25 50 75 100 y1 y5 y9 y11 y15 y19 y1 y1 y5 y5 y9 y9 y11 y11 y15 y15 y19 y19 -10 -5 0 5 0 25 50 75 100 y3 y7 y13 y17 y3 y3 y7 y7 y13 y13 y17 y17 -6 -4 -2 0 2 4 6 0 25 50 75 100 y2 y6 y10 y12 y16 y20 y2 y2 y6 y6 y10 y10 y12 y12 y16 y16 y20 y20 -6 -4 -2 0 2 4 6 0 25 50 75 100 y4 y8 y14 y18 y4 y4 y8 y8 y14 y14 y18 y18

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