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

Hover tool disappears when flipping axis #4006

Closed
Jacob-Barhak opened this issue Sep 28, 2019 · 7 comments · Fixed by #4010
Closed

Hover tool disappears when flipping axis #4006

Jacob-Barhak opened this issue Sep 28, 2019 · 7 comments · Fixed by #4010
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@Jacob-Barhak
Copy link
Contributor

It is nice having the default hover tool as support. However it disappears when flipping the axis of an image.

Below is code that will generate am html page showing proper behavior in one tab and the bug in another tab.

import numpy as np
import holoviews as hv
import panel as pn
from holoviews import opts
from bokeh.resources import INLINE
from holoviews.operation.datashader import rasterize
from matplotlib.cm import  PuBu

hv.extension('bokeh')
np.random.seed(1)
Matrix = np.random.random((1000,1000))

PlotData  = hv.Image(Matrix)  
ShadedBase = rasterize (PlotData, aggregator = 'max', interpolation = 'linear', dynamic  = False)
Shaded = ShadedBase.redim.label(x='X axis ',y='Time', z= 'Value' ).opts(cmap=PuBu, title = 'Working Well ' , xaxis='top', yaxis='left', height=1000, width=1000, tools=['hover'], toolbar = None, axiswise=True) 
ShadedFlipped = ShadedBase.redim.label(x='X axis ',y='Time', z= 'Value' ).opts(cmap=PuBu, title = 'Bug - No hover tool when Y axis is flipped' , invert_yaxis=True, xaxis='top', yaxis='left', height=1000, width=1000, tools=['hover'], toolbar = None, axiswise=True) 

out = pn.layout.Tabs( ( 'Hover tool Working Well',Shaded ),
                       ( 'Hover tool Not working with flipped axis', ShadedFlipped)
                      )

out.save('TestAxisFlip', resources=INLINE) 

I am using Python 3.7.4, holoviews 1.12.3 , Bokeh 1.3.4

Hopefully there is a simple fix.

@philippjfr
Copy link
Member

This is a bokeh issue afaik, but I'll leave it open here for now.

@Jacob-Barhak
Copy link
Contributor Author

Jacob-Barhak commented Sep 30, 2019 via email

@philippjfr
Copy link
Member

Fixed by #4010 and bokeh/bokeh#9253

@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Oct 1, 2019
@philippjfr philippjfr added this to the v1.12.6 milestone Oct 3, 2019
@philippjfr
Copy link
Member

Doesn't appear to be fixed.

@philippjfr philippjfr reopened this Oct 25, 2019
@philippjfr philippjfr modified the milestones: v1.12.6, v1.13.0 Oct 25, 2019
@Jacob-Barhak
Copy link
Contributor Author

This is working fine not on the development version:
holoviews version 1.13.0a22

Closing the issue.

@Jacob-Barhak
Copy link
Contributor Author

To be exact, the versions that it works with are:
holoviews version 1.13.0a21.post10+gdf1a5803
bokeh version 1.4.0

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants