is it possible to get rid of the padding (or margin) on the sides of bokeh figures?
I’ve been looking at various figures and they all seem to have this blank area to their left. I also tried changing the borders for example:
s1.min_border_left = 0 or change it to s1.min_border_left = 40
but it doesn’t seem to do the job, it changes the border but somehow it seems that there is a padding that is fixed and not changable, an example of the area i’d like to get rid of:
so is it possible to get rid of that and just have the figure stick to the left side of the browser?
On Mon, Jan 23, 2017 at 2:34 PM, Elie Desnos [email protected] wrote:
is it possible to get rid of the padding (or margin) on the sides of bokeh figures?
I’ve been looking at various figures and they all seem to have this blank area to their left. I also tried changing the borders for example:
s1.min_border_left = 0 or change it to s1.min_border_left = 40
but it doesn’t seem to do the job, it changes the border but somehow it seems that there is a padding that is fixed and not changable, an example of the area i’d like to get rid of:
so is it possible to get rid of that and just have the figure stick to the left side of the browser?
As an aside, I first thought this was a matter of needing to set Plot.h_symmetry to be False. But it looks like this property is currently ignored. In any case the examples in the user guide demonstrate the min_border_left, etc. do function as desired:
You can confirm this as well by shading your border with some fill color. That will show what part of the padding is no Bokeh's HTML canvas, vs what is HTML/CSS as Mateusz describes.
Thanks,
Bryan
···
On Jan 23, 2017, at 10:26 AM, Mateusz Paprocki <[email protected]> wrote:
Hi,
On Mon, Jan 23, 2017 at 2:34 PM, Elie Desnos <[email protected]> wrote:
is it possible to get rid of the padding (or margin) on the sides of bokeh figures?
I've been looking at various figures and they all seem to have this blank area to their left. I also tried changing the borders for example:
s1.min_border_left = 0 or change it to s1.min_border_left = 40
but it doesn't seem to do the job, it changes the border but somehow it seems that there is a padding that is fixed and not changable, an example of the area i'd like to get rid of:
so is it possible to get rid of that and just have the figure stick to the left side of the browser?