How can I accomplish `set_xlim` or `set_ylim` in Bokeh?

One way is to can things with a simple tuple when creating a figure: figure(…, x_range=(left, right), y_range=(bottom, top)) But you can also set the x_range and y_range properties of a created figure directly. (I had been looking for something like set_xlim or set_ylim from matplotlib.) from bokeh.models import Range1d fig = make_fig() left, right, … Read more

android pinch zoom

Updated Answer Code can be found here : official-doc Answer Outdated Check out the following links which may help you Best examples are provided in the below links, which you can refactor to meet your requirements. Implementing the pinch zoom gesture Android-pinch GestureDetector.SimpleOnGestureListener

Disable Chrome pinch zoom for use in kiosk

We’ve had a similar problem, it manifests as the browser zooming but javascript receiving no touch event (or sometimes just a single point before zooming starts). We’ve found these possible (but possibly not long-term) solutions: 1. Disable the pinch / swipe features when using kiosk mode If these command-line settings remain in Chrome, you can … Read more

Force page zoom at 100% with JS

You can set zoom property on page load document.body.style.zoom = 1.0 But, zoom is not a standard property for all browsers, I recommend using transform instead. var scale=”scale(1)”; document.body.style.webkitTransform = scale; // Chrome, Opera, Safari document.body.style.msTransform = scale; // IE 9 document.body.style.transform = scale; // General http://jsfiddle.net/5RzJ8/