Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yoffset of label not working? #3892

Open
an5ir opened this issue Aug 9, 2019 · 7 comments
Open

yoffset of label not working? #3892

an5ir opened this issue Aug 9, 2019 · 7 comments
Labels
tag: backend: bokeh type: bug Something isn't correct or isn't working
Milestone

Comments

@an5ir
Copy link

an5ir commented Aug 9, 2019

the following:
hv.Labels({('x', 'y') : [['a',1], ['b',2]], 'text':['a', 'b']}, ['x','y'], 'text')*hv.Scatter([('a',1), ('b', 2)]).opts(padding=0.1)

it will plot the following:
image
but if i try add a yoffset to move the labels above the scatter point:
hv.Labels({('x', 'y') : [['a',1], ['b',2]], 'text':['a', 'b']}, ['x','y'], 'text').opts(yoffset=0.2)*hv.Scatter([('a',1), ('b', 2)]).opts(padding=0.1)

i do not get any output in Jupiter notebook. the following errors in:

image

is there any way to manipulate the yoffset above the points for categorical plots?

@an5ir
Copy link
Author

an5ir commented Aug 10, 2019

is there a work around for this?

@philippjfr philippjfr added tag: backend: bokeh type: bug Something isn't correct or isn't working labels Oct 3, 2019
@sephib
Copy link

sephib commented Nov 18, 2019

In stackoverflow there is another example for the bug

@SandervandenOord
Copy link

If you switch the holoviews backend to plotly using hv.extension('plotly') then yoffset is working.
So within holoviews it is working for plotly, but not for the bokeh backend.

@SandervandenOord
Copy link

Plotly backend has specific tests for xoffset and yoffset:

def test_labels_yoffset(self):

I couldn't find those for bokeh or matplotlib:
https://github.com/holoviz/holoviews/blob/master/holoviews/tests/plotting/bokeh/testlabels.py

@mullimanko
Copy link

Hi, this feature could reduce a lot of trouble. Is there any update on this?

@philippjfr philippjfr added this to the v1.14.2 milestone Feb 10, 2021
@jlstevens jlstevens modified the milestones: v1.14.2, 1.14.3 Mar 5, 2021
@philippjfr philippjfr modified the milestones: 1.14.3, v1.14.x, v2.0 May 18, 2021
@shenker
Copy link

shenker commented Jun 5, 2023

Confirming that this bug is still present in the latest holoviews/bokeh.

@droumis
Copy link
Member

droumis commented Jul 26, 2023

confirming that this bug is still present in HoloViews 1.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: backend: bokeh type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

8 participants