Implement zoom and scroll on plot

Issue #9 resolved
Juan Pablo Caram repo owner created an issue

zoom_fit: Fit the plot within axes with 5% margins. Hide scroll bars.

zoom(scale, center): axes_width = total_width/scale, range = [center - axes_width/2, center + axes_width/2]. Adjust scroll bars appropriately.

Comments (2)

  1. Juan Pablo Caram reporter

    Implemented feature with toolbar and keys (1,2 and 3). Toolbar zooms and maintains current center. Keys maintain the point under the cursor at the same location. Scrolling can be done by zooming-out and zooming-in again in the desired location.

  2. Log in to comment