Linked axes

Source code Author Update time

using Plots
gaston()
begin
    x = -5:0.1:5
    plot(plot(x, (x->begin
                    x ^ 2
                end)), plot(x, (x->begin
                    sin(x)
                end)), layout = 2, link = :y)
end
Gnuplot Produced by GNUPLOT 5.2 patchlevel 8 0 5 10 15 20 25 -4 -2 0 2 4 y1 y1 y1 0 5 10 15 20 25 -4 -2 0 2 4 y1 y1 y1

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