How to link the x-axis of subplots using Plots?

Essential for zooming in subplots. The command in Matlab is

linkaxes(subplots, ‘x’);

Plot, then zoom, without “link”:

using Plots
plotlyjs()
plot(rand(100, 4), layout = (4, 1))

That is the role of plots argument link=:x

Thx, this time I can not blame the search.

While we are here, how to have the above subplots show different colors as in a combined plot?

if you have 4 curves add plot argument: color=[:red :blue :green :orange] for example.

Good idea, extended it to a cycling color palette in
makie_subplots.
Makie gets you fine-grain control of your plots.