Resize a vplot / VBox

Hi all,

I have a vplot (formerly a VBox) generated using bokeh (python) and I’d like to be able to resize client side using bokehjs.

I can happily do this for a Plot

Bokeh.index[“”].model.set(‘plot_width’, 1200);

But it doesn’t seem to be working if the object is a vplot. Am I going to have to reach in and resize different sub-elements manually? If so, can anyone recommend a strategy.

Many thanks,

Bird

Hi Sarah,

I’d say that yes, vplot is different from the plot objects and cannot be explicitly resized (so that children get’s resized accordingly). I may be missing something so I will ask confirmation to the other core devs that have been more into this part of Bokeh.

My advice is that if you need need to resize different sub-elements, you can go manually depending on your own specific needs.

Fabio

···

On Sunday, April 5, 2015 at 1:18:13 PM UTC+2, Sarah Bird wrote:

Hi all,

I have a vplot (formerly a VBox) generated using bokeh (python) and I’d like to be able to resize client side using bokehjs.

I can happily do this for a Plot

Bokeh.index[“”].model.set(‘plot_width’, 1200);

But it doesn’t seem to be working if the object is a vplot. Am I going to have to reach in and resize different sub-elements manually? If so, can anyone recommend a strategy.

Many thanks,

Bird