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

Fixes for Bokeh path plots #763

Merged
merged 3 commits into from
Jul 7, 2016
Merged

Fixes for Bokeh path plots #763

merged 3 commits into from
Jul 7, 2016

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Jul 4, 2016

Fixes for hover tools on polygons and adding batching for Path plots. This PR is based off #762 and should be merged after that one.

@philippjfr
Copy link
Member Author

Just rebased the PR, now ready to merge.

if isinstance(val, tuple):
val = rgb2hex(val)
data['color'] += [val for _ in range(len(eldata['xs']))]
if len(set(data.get('color'))) == 1:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little confused by this bit. In the loop, you populate data with 'color' but here you pop it off again?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, if all the paths are the same color there's no need to set it individually for each path. It'll simply be set once separately from the data.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks for clarifying!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll get into the habit of adding more comments for non-obvious things like this.

@jlstevens
Copy link
Contributor

Other than one comment (which is only asking for clarification) this looks fine and I am happy to merge.

@jlstevens jlstevens merged commit 925defc into master Jul 7, 2016
@jlstevens jlstevens deleted the bokeh_path_fixes branch July 12, 2016 22:55
Copy link

This pull request 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 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants