If I run that code, both x-axes are the same - so I’m guessing the problem is not that the x-axes are mismatched.
Tying x-axes together
If what you are looking for is to tie the x-axes together as you zoom in interactively, I think the only package that does that is InspectDR. If you want to try it out, you can just
]add InspectDR, then run the following code:
The output you should get is the following:
Note that you can zoom in/out using the mousewheel or the +/- keys, etc. Check out the interactive mouse/keyboard bindings on the InspectDR.jl page:
Was that what you were looking to do?
If so, I suppose you could either:
- Start using InspectDR.
- Open a feature request on the PlotlyJS.jl repository to get the feature added. I am pretty certain it is not implemented (though I might be wrong).
- Possibly contribute code to PlotlyJS.jl if you want to move things along?