Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

make bokeh plot fill the entire screen

Writer Matthew Barrera

I am using bokeh to plot a google map and I can set the size manually as follows:

self.plot = gmap(self.api_key, self.map_options, title=title)
self.plot.width = 800
self.plot.height = 300
show(self.plot)

This works fine but is there a way to ask it to fill the browser with the map i.e. some sort of a full screen like mode?

1 Answer

Ok, I figured t out. Posting it as an answer in case it helps someone. Use gridplot

So something like:

layout = gridplot([[self.plot]], sizing_mode='stretch_both')

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.