How to do an inset plot in bokeh? - bokeh

I couldn't find a single example of inset plots with bokeh. I'm looking to do something similar to the following: http://akuederle.com/matplotlib-zoomed-up-inset
Where I could have an inset that shows a zoomed in version of the main plot. How can one do this with bokeh?

As of Bokeh 1.3.4, this is still an open feature request.

Related

VisJS Zooming Function

I have a VisJS graph plotted on top of a map. I want to zoom both in and out in unity with a button. Unfortunately the visjs graph seems to have a weird way of scaling as it seems to be very slight around 1 and much further around 0.5 and 1.5.
I tried finding the function that makes the scaling in visjs but there is nothing in the documentation. There also seems to be no one who has had this problem before.
Any Ideas where I could find a function that fits the scaling to a linear scaling map?
Or a functiont that would doubles/halfs the current graph size?

add conditional color on maps using geom_polygon

I want to add borders to differentiate the broader 4 regions on the map created by using geom_polygon. Is there a way of doing it? right now i'm only able to add dots on the intersecting border. Any help would be much appreciated.

How to enable smooth zooming in Bokeh?

I have just starting looking into making my python graphs interactive. Bokeh seems to have a lot of functionality and I am currently trying it out. One thing that I find aesthetically pleasing with the mpld3 library is the smooth zooming after selecting a region with the zoom tool (like in this example). The default behavior in Bokeh seems to be to jump to the zoomed region without without any animation (example, 'wheel zoom' is smooth, but 'box zoom' is not).
Is the smooth zooming feature available in Bokeh and just disabled by default, or is this not implemented?
This is not implemented as of Bokeh 0.8.2, we do plan to add support for animation, key frames, etc. and smooth box zoom would probably best be implemented on top of that.

jqplot baselinewidth won't go under 3 px

I'm using jqplot to draw some small bar graphs.
However, I'm having trouble with the axis. I need to make them very thin and black to make them fit in with the rest of the styling on the site. But for some reason when I get below about 3px, the axis cease to get any thinner and instead start to turn a lighter and lighter grey.
If I leave as 'null' or undefined it seems the default is 1px but a lighter than black shade as well.
I'm guessing I need to alter something in the plugin itself but I've no idea where to change it.
Thanks in advance.

ggplot2 - autosize chart and axis titles

I have create some ggplot2 bar plots which print fine to screen. When I print in PDF device, however, the chart and axis titles are too large - they sometimes extend past the left and right of the x-axis. None of these charts have any opts() set aside from title/axis-title - its all the defaults. What am I missing here? Is there a way to tell ggplot to auto-size this text so that the charts look good in PDF? Can I do this without explicitly setting opts()?
The best solution I can think of is to create a function to create a theme (like theme_bw()) and give it enough parameters so that its smart about sizing. Will keep this post open for a few days to see if there are any other clever ideas

Resources