Tag Archive for 'axes'

Interactive subplots: make all x-axes move together

It’s very easy to make subplots that share an x-axis, so that when you pan and zoom on one axis, the others automatically pan and zoom as well. The key to this functionality is the sharex keyword argument, which is used when creating an axis. Here’s some example code and a video of the resulting interaction. Continue reading ‘Interactive subplots: make all x-axes move together’