There was a typo in the script, the callbacks should be ax.name = "first axis" ax.callbacks.connect('xlim_changed',check_callback) ax.callbacks.connect('ylim_changed',check_callback)
ax2 = ax.twin() ax2.name = "second axis" ax2.callbacks.connect('xlim_changed',check_callback) ax2.callbacks.connect('ylim_changed',check_callback) but the problem remains: check_callback is never called for ax2. Tom -- View this message in context: http://www.nabble.com/Enforcing-common-view-limits-tp23334325p23348806.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users