possible bug in drawing labels?

Hi,

I am trying to draw a basic line with labels on x-axis, but if labels
are oriented vertical, labels on x-axis are not aligned to be below the
axis line, but in the middle of the line.

You can see it here:

https://pravokator.si/wp-content/uploads/2016/06/bokeh_plot-4.png

My code is:

p = figure(plot_width=900, plot_height=400, tools="save",
x_range=(labels), x_axis_location='above')

... and then

p.xaxis.major_label_orientation = "vertical"

If I change it to x_axis_location='below', I get this:

https://pravokator.si/wp-content/uploads/2016/06/bokeh_plot-3.png

Labels are on the top, but aligned correctly.

Regards,

M.

Hi,

Can you report this as a bug on the GitHub issue tracker:

  https://github.com/bokeh/bokeh/issues

Also please include a *complete* minimal example code. In order to investigate a problem we have to be able to reproduce it, which means having code that can be run.

Thanks,

Bryan

···

On Feb 22, 2017, at 16:24, Matej Kovacic <[email protected]> wrote:

Hi,

I am trying to draw a basic line with labels on x-axis, but if labels
are oriented vertical, labels on x-axis are not aligned to be below the
axis line, but in the middle of the line.

You can see it here:

https://pravokator.si/wp-content/uploads/2016/06/bokeh_plot-4.png

My code is:

p = figure(plot_width=900, plot_height=400, tools="save",
x_range=(labels), x_axis_location='above')

... and then

p.xaxis.major_label_orientation = "vertical"

If I change it to x_axis_location='below', I get this:

https://pravokator.si/wp-content/uploads/2016/06/bokeh_plot-3.png

Labels are on the top, but aligned correctly.

Regards,

M.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/1cc240ce-d518-7c1c-20b7-22ecc7ce639d%40gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

Can you report this as a bug on the GitHub issue tracker:

  https://github.com/bokeh/bokeh/issues

I will.

Anyway, I am publishing code also here:

Also please include a *complete* minimal example code. In order to investigate a problem we have to be able to reproduce it, which means having code that can be run.

http://pastebin.com/DYYJr8KM

Regards,

M.

Hi,

I can confirm this problem. Please see the issue for a possible immediate-term workaround.

Thanks.

Bryan

···

On Feb 22, 2017, at 23:50, Matej Kovacic <[email protected]> wrote:

Hi,

Can you report this as a bug on the GitHub issue tracker:

  https://github.com/bokeh/bokeh/issues

I will.

Anyway, I am publishing code also here:

Also please include a *complete* minimal example code. In order to investigate a problem we have to be able to reproduce it, which means having code that can be run.

http://pastebin.com/DYYJr8KM

Regards,

M.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/27beab5c-85a6-9b16-bf74-a44859fc388d%40gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.