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

Add projection aware Graph and TriMesh elements #115

Merged
merged 3 commits into from
Jan 5, 2018
Merged

Conversation

philippjfr
Copy link
Member

This adds support for projection aware Graph elements to GeoViews including the basic Graph element and the TriMesh element. It relies on holoviz/holoviews#2240 to work correctly.

@jbednar
Copy link
Member

jbednar commented Jan 4, 2018

Looks good to me!

nodes = project_points(element.nodes, projection=self.projection)
data = (element.data, nodes)
if element._edgepaths:
data = data + (project_path(element.edgepaths),)
Copy link
Member Author

Choose a reason for hiding this comment

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

Forgot passing the projection here.

@philippjfr
Copy link
Member Author

Almost ready, needs pyflakes fixes, need to define style/plot options for the new elements and one small fix I noted above. Also would be good to merge holoviz/holoviews#2240 first.

@philippjfr
Copy link
Member Author

The HoloViews PR is now merged and this is working as expected. Will go ahead and merge.

@philippjfr philippjfr merged commit fd49df7 into master Jan 5, 2018
@philippjfr philippjfr deleted the graphs branch January 13, 2018 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants