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’
Recent Posts
- Minimal Sphinx setup for autodocumenting Python modules
- Archives
- Write Excel files with Python using xlwt
- Python script to package Latex projects for distribution
- RPy: statistics in R from Python
- Polar bar plot in Python
- Record screencasts, convert to Flash, and embed on your site
- Interactive subplots: make all x-axes move together
- Calculate sunrise and sunset with PyEphem
- Use Sphinx for documentation
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Apr | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||