Is it possible to link x-axis across columns of subplots with Julia plots (without linking their y-axis)?
using Plots
plotlyjs() # or pyplot()
plot(rand(100, 2), layout = (1,2), link = :x)
If I zoom or pan on one of the sub plots, the x-axis of the other subplot is not updated.
Looking at the documentation, the link keyword argument to plot(..) seems to only support linking x axis across rows. It seems like there should be another option to link all x axis together, something like a link = :x_all.
I know matplotlib supports this via the following (in python) using the sharex keyword argument:
I got more comfortable with subplotting in PlotlyJS .
The problem with my solution is that one cannot use grid and share the y-axis across rows: see Layout in JavaScript. The alternative is to use domain in conjunction with matches to link axes of different names. You also need to use anchor to display the y2 axis starting at the x2 axis.