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

Path hover does not work when coloring by a dimension #2427

Closed
philippjfr opened this issue Mar 9, 2018 · 1 comment
Closed

Path hover does not work when coloring by a dimension #2427

philippjfr opened this issue Mar 9, 2018 · 1 comment

Comments

@philippjfr
Copy link
Member

@philippjfr philippjfr commented Mar 9, 2018

In the example below where the Path data is colored by a variable the hover tool does not correctly display the hover data for other dimensions:

coord_system = ccrs.UTM(17)

userLine = [[ 501386.89237725, 3026047.23276743],
 [ 502233.40219658, 3030363.86891928],
 [ 497065.22714886, 3031309.6654351 ],
 [ 499260.08171301, 3027147.9437062 ],
 [ 494678.08475863, 3026891.08691589],
 [ 494971.32963864, 3025188.1383645 ],
 [ 496475.86909916, 3025394.03293946],
 [ 496061.07730504, 3026116.58492655],
 [ 497530.90995815, 3026357.00292598]]

line_pd = pd.DataFrame(userLine, columns=['Longitude', 'Latitude'])
pressure = pd.DataFrame(np.arange(0,401,np.ceil(401/len(userLine))), columns=['Pressure'])
windspeed = pd.DataFrame(np.arange(0,201,np.ceil(201/len(userLine))), columns=['Max_Wind_Speed'])
alldata = pd.concat([line_pd,pressure,windspeed], axis=1)

%%opts Path (cmap='inferno') [tools=['hover'] color_index='Max_Wind_Speed']
gv.Path([alldata], vdims=['Pressure','Max_Wind_Speed'], crs=coord_system)

screen shot 2018-03-09 at 6 21 13 pm

https://stackoverflow.com/questions/49198579/displaying-paths-with-geoviews/49198785

@jbednar jbednar changed the title Path hover does not work when coloring by a dimensions Path hover does not work when coloring by a dimension Mar 10, 2018
@philippjfr philippjfr added this to the v1.10 milestone Mar 30, 2018
@philippjfr philippjfr removed this from the v1.10 milestone Apr 2, 2018
@philippjfr philippjfr added this to the v1.11 milestone Apr 2, 2018
@philippjfr
Copy link
Member Author

@philippjfr philippjfr commented Oct 10, 2018

This has been fixed:

screen shot 2018-10-10 at 1 56 37 pm

Loading

@philippjfr philippjfr closed this Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant