Linked axes

Source code Author Update time

using Plots
gaston()
x = -5:0.1:5
plot(plot(x, (x->begin
                x ^ 2
            end)), plot(x, (x->begin
                sin(x)
            end)), layout = 2, link = :y)
Gnuplot Produced by GNUPLOT 5.4 patchlevel 2 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.