enthought/chaco — pull request #31 by cfarrow (2011-11-23 04:00:56+00:00)
Title: Reset mapper range settings when zoom is reset

I've modified BetterSelectingZoom so that the mapper range settings are reset to the original values when the zoom state is reset or pushed back to the start. This fixes a bug (feature?) where adding a ZoomTool to a plot with auto-resizing ranges (or some other non-static range) would make the ranges static even when resetting the zoom state. This fix is nearly copied from SimpleZoom.

I've also modified examples/demo/updating_plot/updating_plot1.py, which according to the module documentation, was intended to demonstrate this feature.